Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.commands
Class RadioState


java.lang.Object
  extended by 

org.eclipse.core.commands.common.EventManager
      extended by 

org.eclipse.core.commands.State
          extended by 

org.eclipse.jface.commands.PersistentState
              extended by 

org.eclipse.jface.commands.ToggleState
                  extended by 
org.eclipse.jface.commands.RadioState
Direct Known Subclasses:
RegistryRadioState

public class RadioState
extends ToggleState

A piece of boolean state grouped with other boolean states. Of these states, only one may have a value of Boolean.TRUE at any given point in time. The values of all other states must be Boolean.FALSE .

If this state is registered using IMenuStateIds.STYLE, then it will control the presentation of the command if displayed in the menus, tool bars or status line.

Clients may instantiate or extend this interface.

Since:
3.2

Constructor Summary
RadioState ()
           
 
Method Summary
 void dispose ()
          Unregisters this state from the manager, which detaches the listeners.
 void setRadioGroupIdentifier ( String identifier)
          Sets the identifier of the radio group for this piece of state.
 void setValue ( Object value)
          Sets the value for this object.
 
Methods inherited from class org.eclipse.jface.commands. ToggleState
load, save
 
Methods inherited from class org.eclipse.jface.commands. PersistentState
setShouldPersist, shouldPersist
 
Methods inherited from class org.eclipse.core.commands. State
addListener, fireStateChanged, getId, getValue, removeListener, setId
 
Methods inherited from class org.eclipse.core.commands.common. EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioState

public RadioState()
Method Detail

dispose

public void dispose()
Unregisters this state from the manager, which detaches the listeners.

Overrides:
dispose in class State

setRadioGroupIdentifier

public final void setRadioGroupIdentifier(
String identifier)
Sets the identifier of the radio group for this piece of state. If the identifier is cleared, then the state is unregistered.

Parameters:
identifier - The identifier of the radio group for this state; may be null if the identifier is being cleared.

setValue

public void setValue(
Object value)
Sets the value for this object. This notifies the radio state manager of the change.

Overrides:
setValue in class ToggleState
Parameters:
value - The new value; should be a Boolean.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire