Custom alarm and event view

Hello
I tried to create custom alarm&event view. I used "read alarm.vi" and "format alarm data.vi" to fill multicolumn listbox where i changed columns names.  Why alarms disapear when they are not active anymore? How can i change that? I would like to have all alarms in table, new and old ones. How can I change colors when alarm is active, inactive or ack?
thanks

Hi
I did it, but... There is always but. I've changed columns names, switch position of 1st and 2nd, and 3rd and 4th column, and alarms in different state have different color. But its not working properly. Few seconds table is changed and few seconds in not. Maybe my PC is too slow, or is it something else. Please look at picture in attachment. Is there easier way to do it?
Thanks
Attachments:
alarmi.JPG ‏113 KB

Similar Messages

  • Alarm and event logging has stopped

    Alarm & Event Logging with Citadel 5 and Lookout 6.02.
    I have a continuously running application that stopped logging alarms and events approx. 6 weeks ago. (March 07, 2010) The problem went unnoticed until a recent event/alarm sequence needed to be investigated. Data traces are not a problem. They are visible using MAX as well as with Lookout hypertrends. However, MAX shows nothing for alarms or events past that date. (No problem earlier, going back to 2002)
    The Alarm panel in Lookout will show the alarms and events as they occur so I know they're being detected.
    I understand that the data traces are logged to Citadel, whereas alarms and events are passed to the MSSQL server. (In my case the free version that comes with XP - SQL Server Express I believe.)
    This version has a database size limit of 4 GB. What exactly does that mean?
    An *.mdf file >4GB cannot be created?
    An *.mdf file >4GB cannot be read?
    The total size of all *.mdf files cannot exceed 4GB?
    Curiously the file in use is 1.99GB. When archived, it is only about 750 MB, yet the total number of alarms and events are the same in each. There are other *.mdf files that exist on the system but aren't in use.
    NI document 4GPBLT21 states  "Once that limit is reached, the alarm and event data is logged to the high performance Citadel database". Then what? Is that data viewable with MAX?
    MAX doesn't appear to have any tools to selectively delete old alarms or events.
    How can I determine what has happened and what do I need to do to restart the logging?
    Any and all help most welcome.
    Bob L

    Lookout 6.0.2 uses SQL Server Desktop Engine which has the limit of 2G, so your alarm/event database has already reached the limit.
    After the SQL database is full, the alarm/event will be logged to Citadel database. But this maybe reduces the performance of Citadel, that's why we log alarm/event to SQL Server first. But I'm not sure why the alarm logging is stoppted.
    To delete the alarms from SQL Server is not straightforward. One way is to archive it. Follow the steps below.
    1. In MAX, create a new database in different folder.
    2. Create a Trace View and add the whole old database to the trace view.
    3. Right click on the Trace View and select Archive. Archive all to the new database. You don't need to specify the time range.
    4. After the achiving, the new database will have all the trace data and no alarm data in it. You can detach the old database.
    In Lookout, select File->Modify Process to change the database to the new database. Or you can change the system default database from Option->System. And then the lookout process will use the new database which has no alarm in it.
    You can keep the old database files. All the data and alarm/events won't be lost. When you need them, you can attach the database.
    Ryan Shi
    National Instruments

  • Unwanted interface Alarms and Events in PI2.0

    We receive a lot of interface events and alarms from our 3560s access ports. We have not deployed any interface monitoring yet but still hundreds of alarms and events warns us about interfaces going up and down. Anyone who know why Prime is monitoring all interfaces and how to disable that?
    Many tanks in advance       

    Additional lab tests shows that all interfaces of a device indeed is monitored by snmp. When an interface changes from UP to DOWN/DISABLE an event and an alarm is generated. We have not deployed any "Interface health montoring" and still the interfaces are monitored. Not good for access ports.
    As a workaround we created a new Interface health monitoring template with the interface availability check disabled and just one other check enabled (interface util) and deployed it on two specific ports on a switch. Did not help. Alarms were still generated when the access ports were disabled.
    Any ideas?

  • Alarm and Event Query Very Slow

    Group,
    I am using the DSC Alarm and Event Query vi to pull data from the SQL database (not the Citadel).  I have a filter set up that specifies the "Alarm Area" and the start and stop dates with maximun results set to 22.  These dates are set to only pull the last 24 hrs.  This vi will return around 10 to 20 entries out of perhaps 80-90 total events in the last 24 hours in the database.   This database is ~2M in size.   I have to set the timeout to almost 10 min for this vi to not produce a timeout error.  The results returned are correct but it just seems that the time to run this vi is excessive.  It is quering a database on the same system that the quering vi is running on.  Should I expect better preformance?
    Thanks
    Todd

    Verne,
    I have boiled down the code to this attachment.  This query took almost 7 min to return 22 results from a database size that is listed as 2.09877E+6.  I have also tried the Alarms and Event Query to spreadsheet vi also and it takes the same amount of time.  I am wondering if I place the Alarms and Events into the same (Citidel) database that the traces are going if it would be much faster.  I seem to get trace data back very fast.  If I recall correctly I seperated the alarms from the trace because I was having some sort of problem accessing the alarm data in the combined database...but that was several labVIEW versions ago.  Anyone else having this problem?
    Thanks
    Todd
    Attachments:
    Generate Alarm Log General Test.vi ‏19 KB

  • Prime Infrastructure: Can you export Alarms and Events?

    Hello
    In Prime 1.4, you had the ability to export the alarms and events you saw being reported, at least according to the PDF manual: http://www.cisco.com/c/en/us/td/docs/wireless/prime_infrastructure/1-4/configuration/guide/pi_14_cg.pdf
    I want to export these events and alarms that can be found in the Monitor section of Prime 2.1, but the export option does not seem to be available.
    Does anyone know if it is possible to export these via a scheduled report or by looking in a particular place on Prime? I would like to import the information into Splunk to see if we can gain an insight into the information that is being collected.
    thanks
    Bryn

    HI,
    Did you ever determine an answer to this question? I really need to export data after a certain date... (I would also like to publish a calendar, after a certain date-- as no one needs to see the "old" events).
    Stu

  • Alarming and Event Data Storage Locations

    I'm having a problem where the Alarms and Events files are filling up the system disk and causing Lookout to crash.  Is there any way I can set things up so that those files are stored on another disk?  I already have the Historical files being archived on a separate disk, but the alarms and events seem to have stayed on the System disk.  The system disk doesn't have that much free space all the time, which is why I put the historical files somewhere else.
    Also, I have the Historical Data system set to only archive data for 90 days (it was changed a while back from storing perpetually), but I still have files in the database going back years.  Is there a way to purge the old data out?
    David Dudley

    David,
    It's important to note the alarms and events are actually in a separate database from Citadel. 
    This KnowledgeBase article discusses removing/archiving alarms from the database:
    http://digital.ni.com/public.nsf/websearch/B23BDD585BAEB25086256C00005C2851?OpenDocument
    Moving the alarms database is a bit more tricky.  It uses the MSDE 2000 SQL engine, which defaults to using a database on the drive it gets installed to.  I think short of installing Lookout to another drive, there's no "easy" way to move it over.
    Message Edited by Paul M. on 04-08-2006 12:16 AM
    --Paul Mandeltort
    Automotive and Industrial Communications Product Marketing

  • [Bug?] DSC - Clusters Different between 'Read Alarm.vi' and 'Alarm and Event Query.vi" but Contain 'Same' Data

    Howdy!
    Why are the clusters different coming out of the Read Alarm.vi and the Alarm and Event Query.vi when they have the exact same data?
    The only difference is the order of two last elements.
    I am leaning towards bug on this one, unless these clusters need to be distinct for some reason?
    Certified LabVIEW Architect * LabVIEW Champion

    Thanks for posting Ravens Fan
    I re-jiggered my API to reverse my datatypes then applied changes to my application code.
    It wasn't that painful to update. 
    My current understanding is that this bug affects one VI, so I decided it was easier to wrap that VI with the bugfix.
    Attached is my implementation if anyone wants it too.
    Cheers
    -JG
    [LV 2009]
    Certified LabVIEW Architect * LabVIEW Champion
    Attachments:
    Alarm & Event Query_bugfix.vi ‏30 KB
    Convert Alarm And Event Query Cluster.vi ‏21 KB

  • Audit Policy and Event Viewer

    Hi everyone,
    I'm a junior IT auditor seeking for answers about audit policy and event viewer.
    First of all I would like to know what are the difference of log that we obtain from audit policy and event viewer?
    I would like to know that can event viewer show these logs:
    Audit account logon events
    Audit account management
    Audit directory service access
    Audit logon events
    Audit object access
    Audit policy change
    Audit privilege user
    Audit process tracking
    Audit system events
    Thanks in advanced :)

    Hi sally_scrubb,
    As you said, if you configure audit policy, it can provide broad security audit capabilities for client computers and servers. And if you configure this policy, you will find the related events in the Event Viewer.
    For your information, please refer to the following article:
    Audit Policy Settings Under Local Policies\Audit Policy
    In this article, you can find the several links which deliver more detailed information about the items which were listed in your post. From the links, you can learn how to configure the item, what you can get from the item, and the related events about
    the item.
    Hope that helps!
    Regards,
    Lany Zhang

  • Alarm and event related problem

    hi dear all
    again my problem needs u
    On upgrading my project from labview 6.1 to labview 7.1 version i have problem in generating alarm related .ALR file which i further use in my software. for this i m using "legacy_hist_alarms_&_event_Query_to_spreadsheet_file.vi" this vi but in labview 7.1 i replaces it with
    "Alarms and event query to spreadsheet file.vi" but its number of display format and filter elements are changed i also changed these.
    but how i order the elements so i correctly connect with vi . i tried acc. to error list but it gives error every time so pls give the example or any suggestion regarding the order of elements .
    i m thankful to u all in advance
    regards,
    Dhanwanti

    Dhanwanti,
    What error are you receiving when you try to connect to the VI?  What do you mean by "order the elements"? Are you talking about the inputs to the VI? If so, the easiest way to connect to these are to right click on the terminal and select "Create -> Control", which will make a cluster that connects to the VI.
    Let me know if this helps.
    --Paul Mandeltort
    Automotive and Industrial Communications Product Marketing

  • "alarm and event display" crashes my application

    Dear All,
    I use the "alarm and event disply.vi" in my DSC application. It works fine: I can acknowledge alarms, events etc. BUT...
    When I double click the alarm item (or press Alt-Enter) and watch the alarm properties in the Alarm Properties dialog, I can usually watch the properties for some time, selecting the next or previous alarm item, but most often than not, my application just crashes. I don't get any LabVIEW error dialogs. Only Windows is telling me that the application stopped working and it just closes giving me no explanation. Sometimes I don't even see the Windows message. 
    I've tried this on two different computers... same boat!
    I'm using:
    - LV2011
    - Windows 7
    In my application I create the shared variables programmatically, set alarm thresholds programmatically etc.
    Anybody had the same problem?
    regards
    Witold Nocon

    Well…I think I have isolated the problem, and I have recreated it in the Boiler example. Here’s what’s happening:
    If you watch the properties of the alarm in the Alarm and Event Display, and if this alarm “disappears” at this time, the application will crash. This will happen for example when this variable is set to AUTO ACK.
    You can try setting the R02 pump to zero. This will cause the L01 level  to increase reporting an alarm. Now if you set the flows so that the level start decreasing (I set the outflow to max, and the inflow tozero), and immediately click the HI HI alarm and watch it’s properties, the application will crash at the time when this alarm is cleared due to the decreasing level  (AUTO ACK).
    It also seems a “little non-deterministic” but this may be my own impression.
    Anybody had a similar problem or is able to recreate it?

  • DSC 8.01 Configuring alarm and event display control

    Hi all,
    How to configure the columns in this control (alarm and event display control) in order to hide columns, changing the langage ?
    In the previous DSC version it was different.
    Thanks
    Best regards,
    Julien

    Hello Julien,
    At my knowledge, such a control is not customisable. I think you should use the "Alarm and query filter" control (in your FP) linked to the filter input of the "Alarm and query" vi (in your diagram). This should enable you to select the alarms to display
    Regards,
    Mathieu Steiner, Test System Engineer, Safran Engineering
    CLD, ISTQB

  • Alarm and event notification DSC

    I can't understand the functionality of these DSC VIs:
    Acknowledge Alarms .vi
    Set user Defined Alarms .vi
    Request Alarm & Event Notifications .vi
    I appreciate any guide.

    Hi Maryam,
    Acknowledge is where the sequence action that indicates recognition of a new alarm.
    Where an alarm is an abnormal process condition. In the LabVIEW Datalogging and Supervisory Control (DSC) Module, an alarm occurs if a shared variable value goes out of its defined alarm limits or if a shared variable has bad status.
    This is the URL of the DSC module Glossary:
    http://zone.ni.com/reference/en-XX/help/370246D-01/lvdschelp/dsc_glossary/
    If you want to know more about the general functionality of alarms and events and what to use specific VIs for.
    The fisrst call as I said previously should be the context help, check the example library and the NI developer zone. Another reasource which you can check is the DCS module "VI, Function, & How-To Help".
    Click on the "Help" then "VI, Function, & How-To Help", expand the following items in the tree structure "DSC Module"> "DSC Module VIs & Functions" > "Alarm & Events VIs".
    For future reference it would be helpful in future if you gave more information in your posts eg what version of LabVIEW you are using - so can post back relevent versioned example code.
    And what you are trying to do - why are you interested in the DSC alarm VIs, could make more specific replies given this information.
    Sorry if my initial replies are basic but I had no way of knowing the level of information you were looking for and you did not say what you had already tried/ looked up.
    Alarms can be used in many applications but as I said their basic functionality is to alert the user to an abnormal process condition eg sub/super limit values or bad status.
    I hope the above helps but if you require more information please let me know what it is you specifically want to know.
    Regards,
    Emma Rogulska
    NIUK & Ireland

  • Custom ComboBoxEditor and event notification at the end of the edition

    Hi,
    I am trying to write a custom ComboBoxEditor that delegates editing to a JFormattedTextField for inputing only integers in a JComboBox. However unlike the JTable and JTree editors, I find that the documentation is not clear on how to notify the parent combo box that the editing has finished and the user value has been validated. Since ComboBoxEditor has the addActionListener() and removeActionListener() methods in its signature, I naturally assumed that I could fire an ActionEvent to notify the combo when for example the JFormattedTextField just fired a PropertyChangeEvent on the "value" property.
    While it looks like this is working OK at first, this causes the following issue: when the component is displayed in a JOptionPane, the dialog box is closed as soon as the ActionEvent is fired which is definitely not the behavior we want the user to experience (note: the event is fired when the delegated editor loses focus for exemple by clicking in the JTextArea in the provided example). I find this quite odd as the default ComboBoxEditor does not behave this way: when the editor looses focus, the combo box simply fires an ItemEvent; however the code from the basic UI or the metal UI never fire an ActionEvent and thus supposedly never notify the parent combo (!). Of course if I disable the ActionEvent firing, the JOptionPane does not close but the JComboBox never fire an ItemEvent...
    Do you have any idea or suggestions to fix this problem?
    Note : for testing purposes, I also made a custom ComboBoxEditor delegating to a JSpinner*. This one experiences exactly the same issue than the one delegating to a JFormattedTextField.
    *Speaking of which: how come JSpinner does not have an API for its own editor??
    package test;
    import java.awt.*;
    import java.awt.event.*;
    import java.beans.*;
    import java.text.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    * @author  fabriceb
    public class TestComboBoxEditor extends JPanel {
      enum Flavor {
        J_FORMATTED_TEXT_FIELD, J_SPINNER, DEFAULT;
      private static final long serialVersionUID = 1l;
       * Default font sizes.
      private static final int[] DEFAULT_SIZE = {8, 9, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72};
       * Editing flag.
      private boolean isEditing;
      private JComboBox sizeCombo = new JComboBox(new DefaultComboBoxModel());
      private JTextArea textArea = new JTextArea("abcdefghijklmnopqrstuvwxyz\nABCDEFGHIJKLMNOPQRSTUVWXYZ\n1234567890.:,;()[]{}<>/\\+-*=!?_'\"@#$%^%&\nThe quick brown fox jumps over the lazy dog. 1234567890");
      private Flavor flavor = Flavor.J_FORMATTED_TEXT_FIELD;
      private boolean fireActionPerformed = true;
      public TestComboBoxEditor(Flavor flavor) {
        super();
        setPreferredSize(new Dimension(500, 150));
        this.flavor = flavor;
        setLayout(new BorderLayout());
        add(sizeCombo, BorderLayout.NORTH);
        add(new JScrollPane(textArea), BorderLayout.CENTER);
        textArea.setEditable(false);
        textArea.setLineWrap(true);
        textArea.setRows(5);
        sizeCombo.setEditable(true);
        sizeCombo.setMaximumRowCount(5);
        switch (flavor) {
          case J_FORMATTED_TEXT_FIELD:
            sizeCombo.setEditor(new SizeComboBoxEditor());
            break;
          case J_SPINNER: {
            sizeCombo.setEditor(new Size2ComboBoxEditor());
        DefaultComboBoxModel sizeModel = (DefaultComboBoxModel) sizeCombo.getModel();
        for (int size : DEFAULT_SIZE) {
          sizeModel.addElement(size);
        sizeCombo.setSelectedItem(textArea.getFont().getSize());
        sizeCombo.addItemListener(new ItemListener() {
          @Override
          public void itemStateChanged(ItemEvent event) {
            if (isEditing) {
              return;
            switch (event.getStateChange()) {
              case ItemEvent.SELECTED:
                  Object value = sizeCombo.getSelectedItem();
                  System.out.println("Received " + value + "\t" + value.getClass());
                  if ((value instanceof Integer) || (value instanceof Long)) {
                    int size = ((Number) value).intValue();
                    DefaultComboBoxModel sizeModel = (DefaultComboBoxModel) sizeCombo.getModel();
                    int sizeCount = sizeModel.getSize();
                    for (int i = 0; i <
                      sizeCount; i++) {
                      int val = ((Number) sizeModel.getElementAt(i)).intValue();
                      // Value already in combo.
                      if (size == val) {
                        break;
    // Insert before current value.
                      else if (val > size) {
                        sizeModel.insertElementAt(size, i);
                        break;
                      // Add at end.
                      else if (i == sizeCount - 1) {
                        sizeModel.addElement(size);
                        break;
                    applyNewFont();
                break;
       * Produces a new font from the user input.
      protected void applyNewFont() {
        int size = ((Number) sizeCombo.getSelectedItem()).intValue();
        Font font = textArea.getFont().deriveFont((float) size);
        textArea.setFont(font);
       * Self-test main.
       * @param args Arguments from the command line.
      public static void main(String... args) {
        SwingUtilities.invokeLater(new Runnable() {
           * {@inheritDoc}
          @Override
          public void run() {
            try {
              UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              final JFrame frame = new JFrame("Test");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));
              for (final Flavor flavor : Flavor.values()) {
                JPanel panel = new JPanel();
                panel.setLayout(new FlowLayout(FlowLayout.LEFT));
                panel.add(new TestComboBoxEditor(flavor));
                switch (flavor) {
                  case J_FORMATTED_TEXT_FIELD:
                  case J_SPINNER:
                    JButton forwardEventButton = new JButton("Forward event");
                    forwardEventButton.addActionListener(new ActionListener() {
                      @Override
                      public void actionPerformed(ActionEvent event) {
                        JOptionPane.showMessageDialog(frame, new TestComboBoxEditor(flavor), flavor + " - Event forwarded", JOptionPane.INFORMATION_MESSAGE);
                    panel.add(forwardEventButton);
                    JButton doNotForwardEventButton = new JButton("Do Not Forward event");
                    doNotForwardEventButton.addActionListener(new ActionListener() {
                      @Override
                      public void actionPerformed(ActionEvent event) {
                        TestComboBoxEditor test = new TestComboBoxEditor(flavor);
                        test.fireActionPerformed = false;
                        JOptionPane.showMessageDialog(frame, test, flavor + " - Event not forwarded", JOptionPane.INFORMATION_MESSAGE);
                    panel.add(doNotForwardEventButton);
                    break;
                  case DEFAULT:
                    JButton openButton = new JButton("Dialog");
                    openButton.addActionListener(new ActionListener() {
                      @Override
                      public void actionPerformed(ActionEvent event) {
                        JOptionPane.showMessageDialog(frame, new TestComboBoxEditor(flavor), flavor + " - Default editor", JOptionPane.INFORMATION_MESSAGE);
                    panel.add(openButton);
                frame.add(panel);
              frame.pack();
              frame.setLocationRelativeTo(null);
              frame.setVisible(true);
            catch (Exception e) {
              e.printStackTrace();
       * A combo box editor that only accepts integers.
       * @author  fabriceb
      private class SizeComboBoxEditor implements ComboBoxEditor, PropertyChangeListener, FocusListener {
        private JFormattedTextField delegated = new JFormattedTextField(new NumberFormatter(NumberFormat.getIntegerInstance()));
        private EventListenerList listenerList = new EventListenerList();
        private boolean isEditing;
         * Creates a new instance.
        public SizeComboBoxEditor() {
          delegated.addPropertyChangeListener("value", this);
          delegated.addFocusListener(this);
          delegated.setBorder(null);
         * {@inheritDoc}
        @Override
        public Component getEditorComponent() {
          return delegated;
         * {@inheritDoc}
        @Override
        public void selectAll() {
          delegated.selectAll();
          delegated.requestFocus();
         * {@inheritDoc}
        @Override
        public void setItem(Object anObject) {
          isEditing = true;
          if (delegated.getValue() == null || !delegated.getValue().equals(anObject)) {
            delegated.setValue(anObject);
          isEditing = false;
         * {@inheritDoc}
        @Override
        public Object getItem() {
          return delegated.getValue();
         * {@inheritDoc}
        @Override
        public void addActionListener(ActionListener l) {
          listenerList.add(ActionListener.class, l);
         * {@inheritDoc}
        @Override
        public void removeActionListener(ActionListener l) {
          listenerList.remove(ActionListener.class, l);
        protected void fireActionEvent(Integer value) {
          Object listeners[] = listenerList.getListenerList();
          ActionEvent actionEvent = null;
          for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ActionListener.class) {
              // Lazily create the event.
              if (actionEvent == null) {
                actionEvent = new ActionEvent(delegated, ActionEvent.ACTION_PERFORMED, String.valueOf(value));
              ((ActionListener) listeners[i + 1]).actionPerformed(actionEvent);
         * {@inheritDoc}
        @Override
        public void propertyChange(PropertyChangeEvent event) {
          if (!isEditing) {
            Object value = delegated.getValue();
            if (value == null) {
              return;
            int val = ((Number) value).intValue();
            System.out.println("Should forward " + value);
            if (fireActionPerformed) {
              fireActionEvent(val);
        @Override
        public void focusGained(FocusEvent e) {
          System.out.println("JFormattedTextField: Focus gained.");
        @Override
        public void focusLost(FocusEvent e) {
          System.out.println("JFormattedTextField: Focus lost.");
       * A combo box editor that only accepts integers.
       * @author  fabriceb
      private class Size2ComboBoxEditor implements ComboBoxEditor, ChangeListener, FocusListener {
        private SpinnerNumberModel model = new SpinnerNumberModel(1, 1, 100, 1);
        private JSpinner delegated = new JSpinner(model);
        private EventListenerList listenerList = new EventListenerList();
        private boolean isEditing;
         * Creates a new instance.
        public Size2ComboBoxEditor() {
          delegated.addChangeListener(this);
          delegated.addFocusListener(this);
          delegated.setBorder(null);
         * {@inheritDoc}
        @Override
        public Component getEditorComponent() {
          return delegated;
         * {@inheritDoc}
        @Override
        public void selectAll() {
          //delegated.getEditor().selectAll();
          delegated.requestFocus();
         * {@inheritDoc}
        @Override
        public void setItem(Object anObject) {
          isEditing = true;
          if ((anObject != null) && (delegated.getValue() == null || !delegated.getValue().equals(anObject))) {
            delegated.setValue(anObject);
          isEditing = false;
         * {@inheritDoc}
        @Override
        public Object getItem() {
          return delegated.getValue();
         * {@inheritDoc}
        @Override
        public void addActionListener(ActionListener l) {
          listenerList.add(ActionListener.class, l);
         * {@inheritDoc}
        @Override
        public void removeActionListener(ActionListener l) {
          listenerList.remove(ActionListener.class, l);
        protected void fireActionEvent(Integer value) {
          Object listeners[] = listenerList.getListenerList();
          ActionEvent actionEvent = null;
          for (int i = listeners.length - 2; i >= 0; i -= 2) {
            if (listeners[i] == ActionListener.class) {
              // Lazily create the event.
              if (actionEvent == null) {
                actionEvent = new ActionEvent(delegated, ActionEvent.ACTION_PERFORMED, String.valueOf(value));
              ((ActionListener) listeners[i + 1]).actionPerformed(actionEvent);
         * {@inheritDoc}
        @Override
        public void stateChanged(ChangeEvent event) {
          if (!isEditing) {
            Object value = delegated.getValue();
            if (value == null) {
              return;
            int val = ((Number) value).intValue();
            System.out.println("Should forward " + value);
            if (fireActionPerformed) {
              fireActionEvent(val);
        @Override
        public void focusGained(FocusEvent e) {
          System.out.println("JSpinner: Focus gained.");
        @Override
        public void focusLost(FocusEvent e) {
          System.out.println("JSpinner: Focus lost.");
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Thanks for the advice but that's not what I am looking for. My itend is to later have a fully custimized editor that implied pattern configuration (for currency, scientific units, etc..) as well as context popup support as well as complitly different kinds of editors (ie: not-textfield based) but that still fit within the combo area (ie: the address bar for Vista's Explorer).
    I am still considering keeping a (weak) reference to the parent combo to manually edit its content when the PropertyChangeEvent is received.
    Edited by: bouye on Sep 1, 2008 2:23 PM

  • Finder Window Does not retain custom size and/or view

    I recently installed OS X Snow Leopard and ever sine I have had problems with the behaviour of my finder windows in that they simply will not retain my custom view settings.
    +For example, I set the default view to coverflow with a 50/50 ratio of coverflow (on top) and file lists (on the bottom). But as soon as I click to another location, close and then reopen any finder window, at any time, the result is always the same - the window opens in coverflow with the coverflow graphics taking up around 90% of the window space and the file lists underneath squeezed down to minimum size. Even if I set all windows to open in icon view or list view, the same thing happens.+
    *I have tried all of the following:*
    Opening a finder window, resizing, and then closing it straight away
    Deleting the both the finder and the side bar plist files, emptying the trash and then restarting finder
    Restarting finder on its own
    *Is anyone having the same problem and if so have they found a solution?*

    This problem affects a few of my Finder windows, including the Application folder window. I recently did a clean reinstall of SL (which stands for Stupid Lunatic, because that's what I was for upgrading), and the problem occurred a few days later. This cannot be due to using Migration Assistant (and moving "bad" folders), because the installation process creates the Applications folder and populates it with Apples apps. Migration Assistant just adds your apps to the existing folder.
    This problem, or minor variations of it, has occurred with all seven major versions of OS X. Finder window settings were rock solid way back in OS 7 days and remained so through OS 9. I know that Steve Jobs hates the Desktop/Finder approach, but if it's going to be in OS X, then it should work correctly. I actually long for the days when rebuilding the desktop fixed most of the icon and window problems.
    We need a utility that can erase the custom settings for our folders and let us start with a clean settings file.

  • Custom tile and event handling

    Hello Experts,
    We are trying to implement custom tiles in our SAPUI5 application , where clicking on each tile would have different application flow. For example, we have couple of tiles as "My Inbox" and  "My WorkOrders". Clicking on  "My Inbox" would open View1 where as "My WorkOrders" would open  View2. Is it possible via "TileContainer" > "StandardTile". From the demokit we , did not get much idea, so any code snippet with brief explanation would be a great help.
    Thanks in advance for your help!!
    Regards,
    DR

    Hi Diptanu,
                   Please refer this link.
    Regards
    Moulika

Maybe you are looking for

  • AJUDA URGENTE E IMEDIATAAA!

    Opa galera,preciso de ajuda urgente e imediata.Eu estou desenvolvendo um logo para o meu grupo de desenvolvedores(na verdade sou level designer 0.0 ) consegui fazer certa parte, mas estou travado em outra etapa.É o seguinte: No logo há listras(cerca

  • How do I remove my credit card off my iTunes account?

    I'm trying to remove my credit card from my iTunes account, but there isn't an option to do so. I can't download or update any of my apps on my iTunes either because of my credit card. Please help me! It's been a month or so already and I can't find

  • SRKIM: R12: Supplier Contact Information을 확인 하는 SQL

    PURPOSE R12 에서 Supplier Contact Information 을 SQL 로 직접 확인 하는 방법을 알고자 한다. EXPLANATION r12 는 SUPPLIER CONTACT 정보를 저장 하는 방식이 R11i 때와는 차이가 있다. 대부분의 정보가 여러 TCA tables 에 걸쳐 저장된다. AP_SUPPLIER_CONTACTS table 은 supplier address 와 various TCA tables을 연결 하는 lin

  • ? Adobe flash player download on iPad

    ?adobe flash player download new iPad

  • Plant Section Creation

    Hello, I have a query regarding plant section creation. I wanted to create a Plant Section which i did from SPRO>Plant Maintenance & Cus service> Maintenance plan orders, work cntres task lists> Basic Setting>Define Plant Section and then added Plant