|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.wizard.WizardPage.CustomComponentListener
public abstract static class WizardPage.CustomComponentListener extends java.lang.Object
Implement this class if you are using custom Swing or AWT components,
and return an instance of it from
WizardPage.createCustomComponentListener()
.
Constructor and Description |
---|
WizardPage.CustomComponentListener()
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
accept(java.awt.Component c)
Indicates that this CustomComponentListener will take responsibility for noticing events from the passed component, and that the WizardPage should not try to automatically listen on it (which it can only do for standard Swing components and their children). |
boolean |
isContainer(java.awt.Component c)
Determine if the passed component is a container whose children may need to be listened on. |
java.lang.String |
keyFor(java.awt.Component c)
Get the map key for this component's value. |
abstract void |
startListeningTo(java.awt.Component c,
WizardPage.CustomComponentNotifier n)
Begin listening for events on the component. |
abstract void |
stopListeningTo(java.awt.Component c)
Stop listening for events on a component. |
abstract java.lang.Object |
valueFor(java.awt.Component c)
Get the value currently set on the passed component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WizardPage.CustomComponentListener()
Method Detail |
---|
public abstract boolean accept(java.awt.Component c)
Note that this method may be called frequently and any test it does should be fast.
Important: The return value from this method should always be the same for any given component, for the lifetime of the WizardPage.
c
- A componentstartListeningTo()
public abstract void startListeningTo(java.awt.Component c, WizardPage.CustomComponentNotifier n)
eventOccurred()
method on the passed
CustomComponentNotifier
.
c
- The component to start listening ton
- An object that can be called to update the settings map
when an interesting event occurs on the componentpublic abstract void stopListeningTo(java.awt.Component c)
c
- The component to stop listening topublic boolean isContainer(java.awt.Component c)
c
- A component which might be a containerpublic java.lang.String keyFor(java.awt.Component c)
accept()
method
returned true for.
Important: The return value from this method should always be the same for any given component, for the lifetime of the WizardPage.
c
- the component, which the accept method earlier returned
true forpublic abstract java.lang.Object valueFor(java.awt.Component c)
accept()
method
returned true for, and which keyFor()
returned non-null.
c
- the componentJTextComponent
, the value would likely
be the return value of JTextComponent.getText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |