net.sf.echobinding.model
Interface ComponentModel

All Known Subinterfaces:
BoundControl
All Known Implementing Classes:
Button, CheckBox, Label, RadioButton, SelectField, TextField

public interface ComponentModel


Method Summary
 void addActionListener(nextapp.echo2.app.event.ActionListener listener)
          Adds a ActionListener to the set of ActionListeners.
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a PropertyChangeListener to the set of listeners.
 boolean isEnabled()
          Determines the enabled state of this Component.
 boolean isVisible()
          Returns the visibility state of this Component.
 void setEnabled(boolean newValue)
          Sets the enabled state of the Component.
 void setVisible(boolean newValue)
          Sets the visibility state of this Component.
 

Method Detail

isEnabled

boolean isEnabled()
Determines the enabled state of this Component. DisabledComponents are not eligible to receive user input. The application container may render disabled components with an altered appearance.

Returns:
true if the component is enabled
See Also:
#verifyInput(java.lang.String, java.lang.Object)

isVisible

boolean isVisible()
Returns the visibility state of this Component. Non-visible components will not be seen by the rendering application container, and will not be rendered in any fashion on the user interface. Rendering Application Containers should ensure that no information about the state of an invisible component is provided to the user interface for security purposes.

Returns:
the visibility state of this Component

setEnabled

void setEnabled(boolean newValue)
Sets the enabled state of the Component.

Parameters:
newValue - the new state
See Also:
isEnabled()

setVisible

void setVisible(boolean newValue)
Sets the visibility state of this Component.

Parameters:
newValue - the new visibility state
See Also:
isVisible()

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the set of listeners.

Parameters:
listener -

addActionListener

void addActionListener(nextapp.echo2.app.event.ActionListener listener)
Adds a ActionListener to the set of ActionListeners.

Parameters:
listener -


Copyright © 2007. All Rights Reserved.