org.netbeans.spi.debugger.ui/1 2.27.1

org.netbeans.spi.debugger.ui
Interface Controller


public interface Controller

Support for validation of various customizers. This interface can not be implemented directly by the customizer component. See AttachType.getController()) and BreakpointType.getController()).


Field Summary
static String PROP_VALID
          Property name constant for valid property.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Add a listener to property changes.
 boolean cancel()
          Called when "Cancel" button is pressed.
 boolean isValid()
          Return true whether value of this customizer is valid (and OK button can be enabled).
 boolean ok()
          Called when "Ok" button is pressed.
 void removePropertyChangeListener(PropertyChangeListener l)
          Remove a listener to property changes.
 

Field Detail

PROP_VALID

static final String PROP_VALID
Property name constant for valid property.

See Also:
Constant Field Values
Method Detail

ok

boolean ok()
Called when "Ok" button is pressed.

Returns:
whether customizer can be closed

cancel

boolean cancel()
Called when "Cancel" button is pressed.

Returns:
whether customizer can be closed

isValid

boolean isValid()
Return true whether value of this customizer is valid (and OK button can be enabled).

When this interface is implemented by a class that extends JComponent, this method clashes with Component.isValid() method. In this case please implement this by a different class and override AttachType.getController(), resp. BreakpointType.getController().

Returns:
true whether value of this customizer is valid

addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener l)
Add a listener to property changes.

Parameters:
l - the listener to add

removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener l)
Remove a listener to property changes.

Parameters:
l - the listener to remove

org.netbeans.spi.debugger.ui/1 2.27.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.