Package net.sf.jguiraffe.gui.forms
Klasse ComponentHandlerImpl
java.lang.Object
net.sf.jguiraffe.gui.forms.ComponentHandlerImpl
- Alle implementierten Schnittstellen:
ComponentHandler<Object>
A simple default implementation of the ComponentHandler
interface.
This class implements all methods required by the
ComponentHandler
interface without being backed by a really
GUI component. All get and set methods operate on internal properties. The
class can be used for testing or for components that need a faked component
handler.
- Version:
- $Id: ComponentHandlerImpl.java 205 2012-01-29 18:29:57Z oheger $
- Autor:
- Oliver Heger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the underlying component.getData()
Returns data of this handler.Returns the outer component of this handler.Class
<?> getType()
Returns the data type of this handler.boolean
Returns the enabled flag.void
Sets the underlying component.void
Sets data of this handler.void
setEnabled
(boolean f) Sets the enabled flag.void
Allows to set this handler's data type.
-
Konstruktordetails
-
ComponentHandlerImpl
public ComponentHandlerImpl()
-
-
Methodendetails
-
getComponent
Returns the underlying component.- Angegeben von:
getComponent
in SchnittstelleComponentHandler<Object>
- Gibt zurück:
- the component
-
setComponent
Sets the underlying component. The passed in object is simply stored in an internal property.- Parameter:
c
- the component
-
getData
Returns data of this handler. This data is simply stored in an internal property.- Angegeben von:
getData
in SchnittstelleComponentHandler<Object>
- Gibt zurück:
- the component's data
-
setData
Sets data of this handler. The passed in data object is stored in an internal property.- Angegeben von:
setData
in SchnittstelleComponentHandler<Object>
- Parameter:
data
- the data object
-
getType
Returns the data type of this handler.- Angegeben von:
getType
in SchnittstelleComponentHandler<Object>
- Gibt zurück:
- the data type
-
setType
Allows to set this handler's data type. The type set with this method will be returned by thegetType()
method. It should always be initialized first.- Parameter:
type
- the type of this handler
-
getOuterComponent
Returns the outer component of this handler. This is the same as the normal component.- Angegeben von:
getOuterComponent
in SchnittstelleComponentHandler<Object>
- Gibt zurück:
- the handler's outer component
-
isEnabled
public boolean isEnabled()Returns the enabled flag.- Angegeben von:
isEnabled
in SchnittstelleComponentHandler<Object>
- Gibt zurück:
- the enabled flag
-
setEnabled
public void setEnabled(boolean f) Sets the enabled flag. This flag is simply realized by an internal member variable.- Angegeben von:
setEnabled
in SchnittstelleComponentHandler<Object>
- Parameter:
f
- the flag value
-