|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Control
This interface describes a control that may be attached to or detached from a component. A control usually summarizes a set of listeners or input actions. A control may be enabled or disabled, offering the possibility to switch between different control modes.
Method Summary | |
---|---|
void |
attachTo(javax.swing.JComponent component)
Attach this control to the given component. |
void |
detachFrom(javax.swing.JComponent component)
Detach this control from the given component. |
boolean |
isEnabled()
Returns whether this control is enabled |
void |
setEnabled(boolean enabled)
Enable or disable this control |
Method Detail |
---|
void attachTo(javax.swing.JComponent component)
detachFrom(JComponent)
method has to be called.
component
- The component to attach tovoid detachFrom(javax.swing.JComponent component)
attachTo(JComponent)
was called.
component
- The component to detach fromvoid setEnabled(boolean enabled)
enabled
- Whether this control is enabledboolean isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |