Logo Search packages:      
Sourcecode: wims version File versions  Download package

int rene::gui::IconBar::getToggleState ( String  name  )  [inline]

Return the state of a toggle icon.

Definition at line 1331 of file IconBar.java.

References getState().

      {     BasicIcon icon=find(name+0);
            if (icon==null || !(icon instanceof ToggleIcon)) return -1;
            int n=((ToggleIcon)icon).countPeers();
            for (int i=0; i<n; i++)
            {     if (getState(name+i)) return i;
            return -1;

Generated by  Doxygen 1.6.0   Back to index