Filtering For Various Alarms

Hi All,
I have a JTable that have several columns.Filtering is working fine for all column values.But there is an Alarm column
that have images that represents alarm condition.If it is red in color it is critical if green then normal and if it is pink
it is major etc.Normally we have icons in alarm column but if we click on icon its underlying value appears like critical
for red icon and normal for green icon.
I want to filter alarm on underlying values because we have a textfield and
a button to filter.So what I should do to filter alarm column based on its underlying value.
With Regards
Prabhash Mishra

I don't know from memory how JTable filtering works, but I'll assume you can write some code. Forget about the fact that they are "alarms", what you have are image objects. Assuming that they are ImageIcon objects, what I'd do is keep a reference to the unique ImageIcon objects.
ImageIcon redAlarm = ...;
ImageIcon yellowAlarm = ...;
ImageIcon greenAlarm = ...;Now if you populate the table with only these objects, so don't create a new ImageIcon for each 'alarm' but keep reusing these objects, you can filter simply on the object reference.
if(imageFromJTable == redAlarm){
  // red alarm
}etc. etc.

Similar Messages

  • Droid 4 how do you add sounds for the alarm.

    How do you add sounds for the alarm on the Droid 4. I do not like any of the alarm clock sounds.

    In your internal storage of the phone, create a folder called alarms. Then copy or move the audio files to that folder.
    You might need to download a file explorer application from the Android Market.
    If the alarms in the root of storage doesn't work. Create a media folder, then a audio folder in that folder and then move the alarms folder in that folder.
    Or the simplest route, download the app called Ringdroid. You can use that application to set sounds as various ringtones types.

  • Develop a report to track discount for various product

    hi
      i need to develop a report to track discount for various product depending upon the client

    Hello Noor,
    I'm not sure but if you are talking about the marketing attributes, you can definitely use FM - CRM_MKTBP_ASSIGN_ATTRIBUT_TAB
    You need to pass the profile id, partner id and marketing attributes data. Thats it.
    I think the FM you ar eusing for terrritory is fine. It should work.
    I hope this helps.
    Thanks
    Vishal

  • HOW TO USE A SINGLE PERFORM FOR VARIOUS TABLES ?

    perform test TABLES t_header.
    select
           KONH~KNUMH
           konh~datab
           konh~datbi
           konp~kbetr
           konp~konwa
           konp~kpein
           konp~kmein
           KONP~KRECH
           FROM konh INNER JOIN konp
                  ON konpknumh = konhknumh
           into table iTABXXX
            "ANY TEMPERARY INTERNAL TABLE.
           for all entries in t_header
           where
                 konh~kschl = t_header-kschl
             AND konh~knumh = t_header-knumh.
    endform.
    how can I use above perform for various internal tables of DIFFERENT LINE TYPES but having the fields KSCHL & KNUMH.

    u can use single perform....
    just see this example......hope this is what u r expecting....
    tables : pa0001.
    parameters : p_pernr like pa0001-pernr.
    data : itab1 like pa0001 occurs 0 with header line.
    data : itab2 like pa0002 occurs 0 with header line.
    perform get_data tables itab1 itab2.
    if not itab1[] is initial.
    loop at itab1.
    write :/ itab1-pernr.
    endloop.
    endif.
    if not itab2[] is initial.
    loop at itab2.
    write :/ itab2-pernr.
    endloop.
    endif.
    *&      Form  get_data
          text
         -->P_ITAB1  text
         -->P_ITAB2  text
    form get_data  tables   itab1 structure pa0001
                            itab2 structure pa0002.
    select * from pa0001 into table itab1 where pernr = p_pernr and begda le sy-datum and endda ge sy-datum.
    select * from pa0002 into table itab2 where pernr = p_pernr and begda le sy-datum and endda ge sy-datum.
    endform.                    " get_data
    Regards
    vasu

  • I can't delete an itunes account that my xhusband also has on his iphone and my email account as well.  He can read my emails but I can't delete this itunes account because I can't access it for various reasons.  Short of paying apple to delete is a way?

    I still think my xhusband can see my emails on his iphone since I had downloaded an app on his iphone using my itunes account. Now I can't get into this account for various reasons.  Is there any way of deleting this itunes account short of paying apple to do it?

    You can't delete an iTunes accounr/Apple ID. All you can do is stop using it. What you can do is change your Apple ID password, as well as the password for your email account. That will put an end to this.

  • How to apply filters for union all report in OBIEE 11g

    Hi All
    Can we apply saved filters to union reports in obiee 11g?
    I am able to apply saved filters for normal reports but not for union reports.
    The catalog pane is blank, when i click on result columns or each criteria.
    The only option i see is to manually create the filters for each criteria, dont i have any choice to use a saved filter for union report?
    Is this a bug or something i am unaware. Please guide me
    Thanks

    Hi manu,
    Filter is created based on subject area.we can't use save filter in any other subject areas.
    now we can use new filter for union reports.
    if Helps please mark as correct.. :)

  • Hello. I began with the DPS. Is it possible to publish a magazine for a limited, specific target group? For example, in one department of a large company? Or to the responsible for various services? If so, how should I do? Thank you for your help.

    Hello.
    I began with the DPS. Is it possible to publish a magazine for a limited, specific target group? For example, in one department of a large company?
    Or to the responsible for various services? If so, how should I do? Thank you for your help.

    Short answer is yes.
    Click the request for consultation link in Digital Publishing Suite Help | DPS pricing options to receive a price estimate for the DPS license your project.

  • Providing sorting filters for a table in webdynpro java application

    ho to provide sorting  , filters , for a table in webdynpro java application .

    Hi Pradeep,
    Please go through the following article on implementation of filtering and sorting:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f024364b-3086-2b10-b2be-c0ed7d33fe65
    The article contains a link to a sample application using the TableSorter and TableFilter Class.
    The same classes can be used by any other web dynpro application. Download the sample application and copy the classes. In case of a specific requirement, modify the TableSorter and TableFilter classes.
    Regards,
    Kartikaye

  • Inventory count for Various Stock types

    What is Inventory count for Various Stock types?
    i have to upload data to this.
    can anyone explain this and give the tcode for this.
    Regards,
    Vimal

    Hi,
    While taking up physical inventory you have the option of doing it for different stock types being maintained .Like Quality stock,unrestricted stock ,blocked stock.If you are doing this activity in sessions in MI31 ,you need to check against the stock types which are to be counted.This will include the stock of the items as selected and leave aside the stock types not selected.In MI01 also you can select these stock types which are donated by 1,2,3 & 4 stock type.After creating the document the stock counted is to be entered in MI04 .Than get the difference list in MI20.The difference will be posted in MI07 which will complete the activity and stock will be adjusted after posting tyhe difference.
    Dhruba

  • Internet Filtering for iPod Touch

    I have a 12 year old boy that just got an iPod touch for his birthday.  Is there anything anyone can reccomend to filter the internet ie. Net Nanny?  Thank you!

    Maybe try turning off safari on restrictions and then installing k9 interent browser app, they're a internet filter, the app allows access to the internet with thier standard setting of filtering for the internet browser. Its quite good, its free, however you cant customize what it blocks from being seen when you browse the interent.
    https://itunes.apple.com/au/app/k9-web-protection-browser/id407657840?mt=8

  • Colour filters for RGB separation?

    I want to colour-separate an image to create false-colour - start with a UV-only photo matched with an RGB photo, then separate the B & G of the RGB so I can map UV to B, B to G and G to R as insects see things. The images are film, not digital raw.
    First, I have to find colour filters for Elements 9, and there don't seem to be any installed. Any sources that others have used without problems?
    I assume that converting each separated image to B&W then to the desired colour, then superposing as 3 layers will work, but is there a better way?

    Thanks for the info -- it inspired me to experiment with this.  I was amazed that I could separate the original colour image into 3 separate B&W layers and then recombine them into a full colour image.  One thing I found is that the colourized B&W layers need to be combined using the "Screen" mode, not "Multiply".
    Just for the helluvit, I faked an insect's vision of a flower using the OP's layer replacements.  I don't have a UV image of the flower, so I used PSE's "Infrared effect" in the B&W conversion dialog.  That effect is certainly not the same as a UV image, but will have to do for this experiment.  When comparing my result with images on the Web that created a false colour image of insect vision, I saw that I needed to add a Brightness/Contrast layer at the top of the stack, with the Brightness set to -100 and the Contrast set to -50.  Here's what I ended up with:
    Original:
    False colour (insect vision):
    I, too, am curious to see the OP's results.
    Thanks again for the inspiration!
    Ken

  • How to create filters for OPENHUB?

    hi experts,
    how can i create filters for OPENHUB Destination for the below scenario.
    Make some kind of u201Clogicu201D to support a filter on an open hub. E.g. only data from month 2011-04  and until today are u201Copen hubu2019edu201D each day and data before 2011-04 must be u201Copen hubu2019ed u201D e.g. each weekend.
    The filter on the open hub can be different from open hub to open hub. We must be able, to filter one or more fields from the open hub.
    Regards
    venuscm

    hi this may helpful for you
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0a5e58d-1117-2d10-13a7-fa10c2cf20d8?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90441228-52a8-2d10-e683-fe4b2d65c331?QuickLink=index&overridelayout=true
    Edited by: Srikanth.T on Nov 24, 2011 10:03 AM

  • Selective IP filtering for multiple servers in a domain?

    Is it possible to have IP filtering on for certain servers in a
    domain, and not for others?
    This is the situation:
    I am deploying two servers in mydomain, so let's call it serverA
    and serverB. I want serverA to accept all connections while
    serverB accepts connections only from certain IPs. I know you
    can do IP filtering using SimpleConnectionFilter in the
    "Connection Filter" option in Security->General tab of the Admin
    console, but this turns on IP filtering for BOTH serverA and
    serverB! How do I turn it on for one, and not the other? Any
    help would be greatly appreciated. Thank you.
    Leon

    Hi,
    Yes you can have muliple servers in a domain. You can create as many managed
    servers as your hardware can handle. When you added the server, did you use the
    startManagedWebLogic.sh (or .cmd) script to start the server. Once you do that,
    you should see the server as running.
    Hope this helps,
    pat
    "MS" <[email protected]> wrote:
    >
    Hello All,
    Is it possible to have multiple servers in a domain?
    When I add a new server, the State is reported in the weblogic console
    as "UNKNOWN".
    What does this mean?
    rgds
    MS

  • Check the filtering for an index

    Hi,
    Can anyone please tell me how I can check the filtering for an index? Thanks for your valuable time.
    Sincerely,
    Sri

    hi Patricio,
    Sorry for interfering with your patient step by step reply.
    Hi Sri,
    In case you are using a file repository, and few of your documents are getting indexed and few not, while all belong to the same data source, and if the error is "Preparation Failed" for a few documents, then it might be becos the documents that are not indexed are of size > 10KB. And the documents that got indexed are becos they are of size < 10KB.
    If it does not help, hope Patricio will continue analysing your problem.
    best regds,
    Alagammai.

  • ICWC - define filters for case management 5.0

    If I want to limit the Cases linked objects and logs to BP's, sales order, & service tickets are the proper setting.
    1. SPRO > interaction center webclient > business transaction > case management > define filters for displaying case detail.
    2. Define filter = ZTEST,
    enter any heading descriptions 1- 5
    Navigation = RecFolderToRecordDetail
    3. Assign element types,  add entries
    CRM_BUSINESS_PARTNER
    CRM_SALES_TRANSACTION
    CRM_SERVICE_TRANSACTION
    Can BOL type, description, path to bol 1, path to bol 2, etc all stay blank? to default to SAP functionality?
    4. Define Filter profile = ZTEST1
    5. assign filter ZTEST1 = ZTEST
    Step #3 is the one I want to be sure I understand.  Will rewards points.
    6. assign the filter in a different SPRO entry.

    I'm guessing zdefault had same description default and it was picking up the default one in error.

Maybe you are looking for

  • Crystal Report: ERROR - Some parameters are missing values

              mine report it possesses a single parameter ....           this is the example of like tries of to change the value set up in the report...           ERROR: Some parameters are missing values           thanks help...           EXAMPLE:     

  • How can I delete all aol email accounts from my iPad and start over

    What's supposed to happen now?

  • Billing problem for cash sales document

    Hi all , Greetings we are customizing for cash sales. Required Three configuration setting are done for sales document i.e 1. Shipping condition Immediatly 2. Lead Time 0 3. Immediate delivery must be switch on and order and delivery is done at the s

  • Purchase order is printed in LOCL

    Hi, In "communication" i have put an output device ZZ01 different of LOCL. But when i print the purchase order, the document is printed in LOCL. What's missing. Thanks.

  • OS X 10.5.7 Update Problem

    Dear Guys, I have had problem from the Mac reminding me the computer is running out of space, but in fact it still has around 1.3G left in the HD. This morning, I was prompted for two software updates (iTunes 8.2.0 Size 79.3M; Quicktime 7.6.2 Size 60