org.xulux.guilayer.swing.widgets
Class Entry

java.lang.Object
  extended by org.xulux.gui.XuluxWidget
      extended by org.xulux.guilayer.swing.SwingWidget
          extended by org.xulux.guilayer.swing.widgets.Entry
All Implemented Interfaces:
java.io.Serializable, org.xulux.api.gui.IWidget
Direct Known Subclasses:
TextArea, TextPane

public class Entry
extends SwingWidget

Represents an entry field

Version:
$Id: Entry.java,v 1.1 2005/12/18 12:58:18 mvdb Exp $
Author:
Martin van den Bemt
See Also:
Serialized Form

Field Summary
protected  PrePostFieldListener focusListener
          The focuslistener
protected  PrePostFieldListener immidiateListener
          the immidiatelistener
protected  boolean setValueCalled
          is setValue called ?
protected  javax.swing.text.JTextComponent textComponent
          A textcomponent allows overriding by similar classes.
protected  java.lang.Class valueClass
          the value class
 
Fields inherited from class org.xulux.gui.XuluxWidget
initialized, initializing, isRefreshing, log, previousValue, properties, value, visible
 
Constructor Summary
Entry(java.lang.String name)
          Constructor for Entry.
 
Method Summary
 void addXuluxListener(org.xulux.api.gui.IXuluxListener listener)
           
 boolean canContainValue()
           
 void clear()
           
 void destroy()
           
 java.lang.Object getGuiValue()
           
 java.lang.Object getNativeWidget()
           
 java.lang.Object getValue()
           
 void initialize()
           
protected  void initializeValue()
          Lets changes reflect onscreen.
protected  void initInitialValue()
          Initializes the initial value, if any.
 boolean isValueEmpty()
           
 void refresh()
           
 void setProperty(java.lang.String key, java.lang.Object value)
           
 void setValue(java.lang.Object object)
           
 
Methods inherited from class org.xulux.guilayer.swing.SwingWidget
focus, getWidgetInitializer
 
Methods inherited from class org.xulux.gui.XuluxWidget
addChildWidget, addDependency, addPropertyHandler, addPropertyHandler, canBeRootWidget, canContainChildren, equals, getChildWidgets, getDependencies, getField, getName, getParent, getPart, getPrefix, getPreviousValue, getProperties, getProperty, getPropertyHandler, getPropertyHandlers, getProvider, getRealProperty, getRealValue, getRectangle, getRules, getWidgetType, handleProperties, handleProperty, hasDependencies, ignoreLayout, ignoreUse, isEnabled, isImmidiate, isInitializing, isRefreshing, isRequired, isRootWidget, isSkip, isUseIgnored, isValidValue, isVisible, notifyListeners, processDestroy, processInit, processNativeWidget, registerRule, removeAllRules, setAutoRefresh, setContainerWidgetHandler, setEnabled, setField, setImmidiate, setLazyProperty, setName, setParent, setPart, setPosition, setPrefix, setProvider, setRequired, setRootWidget, setSize, setSkip, setValidValue, setVisible, setWidgetInitializer, setWidgetType, toString, updateWidget
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

setValueCalled

protected boolean setValueCalled
is setValue called ?


textComponent

protected javax.swing.text.JTextComponent textComponent
A textcomponent allows overriding by similar classes.


focusListener

protected PrePostFieldListener focusListener
The focuslistener


immidiateListener

protected PrePostFieldListener immidiateListener
the immidiatelistener


valueClass

protected java.lang.Class valueClass
the value class

Constructor Detail

Entry

public Entry(java.lang.String name)
Constructor for Entry.

Parameters:
name - the name of the entry
Method Detail

destroy

public void destroy()
See Also:
IWidget.destroy()

getNativeWidget

public java.lang.Object getNativeWidget()
See Also:
IWidget.getNativeWidget()

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)
Specified by:
setProperty in interface org.xulux.api.gui.IWidget
Overrides:
setProperty in class org.xulux.gui.XuluxWidget
See Also:
IWidget.setProperty(java.lang.String, java.lang.Object)

initialize

public void initialize()
See Also:
IWidget.initialize()

initInitialValue

protected void initInitialValue()
Initializes the initial value, if any.


refresh

public void refresh()
Specified by:
refresh in interface org.xulux.api.gui.IWidget
Overrides:
refresh in class org.xulux.gui.XuluxWidget
See Also:
IWidget.refresh()

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface org.xulux.api.gui.IWidget
Overrides:
getValue in class org.xulux.gui.XuluxWidget
See Also:
IWidget.getValue()

initializeValue

protected void initializeValue()
Lets changes reflect onscreen.

Parameters:
value -

setValue

public void setValue(java.lang.Object object)
Specified by:
setValue in interface org.xulux.api.gui.IWidget
Overrides:
setValue in class org.xulux.gui.XuluxWidget
See Also:
IWidget.setValue(java.lang.Object)

clear

public void clear()
Specified by:
clear in interface org.xulux.api.gui.IWidget
Overrides:
clear in class org.xulux.gui.XuluxWidget
See Also:
IWidget.clear()

getGuiValue

public java.lang.Object getGuiValue()
See Also:
IWidget.getGuiValue()

canContainValue

public boolean canContainValue()
See Also:
IWidget.canContainValue()

isValueEmpty

public boolean isValueEmpty()
See Also:
IWidget.isValueEmpty()

addXuluxListener

public void addXuluxListener(org.xulux.api.gui.IXuluxListener listener)
Specified by:
addXuluxListener in interface org.xulux.api.gui.IWidget
Overrides:
addXuluxListener in class org.xulux.gui.XuluxWidget
See Also:
IWidget.addXuluxListener(org.xulux.api.gui.IXuluxListener)


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.