org.xulux.guilayer.swing.core
Class AbstractSwingWidget

java.lang.Object
  extended by org.xulux.guilayer.swing.core.AbstractSwingWidget
All Implemented Interfaces:
org.xulux.api.gui.IWidget

public abstract class AbstractSwingWidget
extends java.lang.Object
implements org.xulux.api.gui.IWidget

Version:
$Id: $
Author:
Martin van den Bemt

Constructor Summary
AbstractSwingWidget()
           
 
Method Summary
 void addChildWidget(org.xulux.api.gui.IWidget widget)
           
 void addXuluxListener(org.xulux.api.gui.IXuluxListener listener)
           
 boolean canBeRootWidget()
           
 boolean canContainChildren()
           
 boolean canContainValue()
           
 void clear()
           
 void destroy()
           
 void focus()
           
 java.util.List getChildWidgets()
           
 java.lang.String getField()
           
 java.lang.Object getGuiValue()
           
 java.lang.String getName()
           
 java.lang.Object getNativeWidget()
           
 org.xulux.api.core.IPart getPart()
           
 java.lang.Object getPreviousValue()
           
 java.util.Map getProperties()
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProvider()
           
 org.xulux.api.gui.IWidgetRectangle getRectangle()
           
 java.util.List getRules()
           
 java.lang.Object getValue()
           
 java.lang.String getWidgetType()
           
 void ignoreUse(boolean ignoreUse)
           
 void initialize()
           
 boolean isEnabled()
           
 boolean isRefreshing()
           
 boolean isValueEmpty()
           
 boolean isVisible()
           
 void refresh()
           
 void registerRule(org.xulux.api.rules.IRule rule)
           
 void setEnabled(boolean enable)
           
 void setField(java.lang.String field)
           
 void setLazyProperty(java.lang.String key, java.lang.Object value)
           
 void setParent(org.xulux.api.gui.IWidget parent)
           
 void setPart(org.xulux.api.core.IPart part)
           
 void setPosition(int x, int y)
           
 void setProperty(java.lang.String key, java.lang.Object value)
           
 void setProvider(java.lang.String provider)
           
 void setRootWidget(boolean isRootWidget)
           
 void setSize(int width, int height)
           
 void setValue(java.lang.Object value)
           
 void updateWidget(org.xulux.api.gui.IWidget widget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xulux.api.gui.IWidget
addDependency, addPropertyHandler, getDependencies, getParent, getPrefix, getPropertyHandler, getPropertyHandlers, getWidgetInitializer, handleProperties, isRequired, isValidValue, setAutoRefresh, setContainerWidgetHandler, setName, setPrefix, setVisible, setWidgetInitializer, setWidgetType
 

Constructor Detail

AbstractSwingWidget

public AbstractSwingWidget()
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key)
Specified by:
getProperty in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getProperty(java.lang.String)

getChildWidgets

public java.util.List getChildWidgets()
Specified by:
getChildWidgets in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getChildWidgets()

getNativeWidget

public java.lang.Object getNativeWidget()
Specified by:
getNativeWidget in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getNativeWidget()

destroy

public void destroy()
Specified by:
destroy in interface org.xulux.api.gui.IWidget
See Also:
IWidget.destroy()

initialize

public void initialize()
Specified by:
initialize in interface org.xulux.api.gui.IWidget
See Also:
IWidget.initialize()

isValueEmpty

public boolean isValueEmpty()
Specified by:
isValueEmpty in interface org.xulux.api.gui.IWidget
See Also:
IWidget.isValueEmpty()

canContainValue

public boolean canContainValue()
Specified by:
canContainValue in interface org.xulux.api.gui.IWidget
See Also:
IWidget.canContainValue()

focus

public void focus()
Specified by:
focus in interface org.xulux.api.gui.IWidget
See Also:
IWidget.focus()

getGuiValue

public java.lang.Object getGuiValue()
Specified by:
getGuiValue in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getGuiValue()

canContainChildren

public boolean canContainChildren()
Specified by:
canContainChildren in interface org.xulux.api.gui.IWidget
See Also:
IWidget.canContainChildren()

getPart

public org.xulux.api.core.IPart getPart()
Specified by:
getPart in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getPart()

getName

public java.lang.String getName()
Specified by:
getName in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getName()

getRules

public java.util.List getRules()
Specified by:
getRules in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getRules()

setParent

public void setParent(org.xulux.api.gui.IWidget parent)
Specified by:
setParent in interface org.xulux.api.gui.IWidget
See Also:
IWidget.setParent(org.xulux.api.gui.IWidget)

canBeRootWidget

public boolean canBeRootWidget()
Specified by:
canBeRootWidget in interface org.xulux.api.gui.IWidget
See Also:
IWidget.canBeRootWidget()

getValue

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

getProvider

public java.lang.String getProvider()
Specified by:
getProvider in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getProvider()

getField

public java.lang.String getField()
Specified by:
getField in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getField()

updateWidget

public void updateWidget(org.xulux.api.gui.IWidget widget)
Specified by:
updateWidget in interface org.xulux.api.gui.IWidget
See Also:
IWidget.updateWidget(org.xulux.api.gui.IWidget)

setValue

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

getPreviousValue

public java.lang.Object getPreviousValue()
Specified by:
getPreviousValue in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getPreviousValue()

refresh

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

setPart

public void setPart(org.xulux.api.core.IPart part)
Specified by:
setPart in interface org.xulux.api.gui.IWidget
See Also:
IWidget.setPart(org.xulux.api.core.IPart)

clear

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

addChildWidget

public void addChildWidget(org.xulux.api.gui.IWidget widget)
Specified by:
addChildWidget in interface org.xulux.api.gui.IWidget
See Also:
IWidget.addChildWidget(org.xulux.api.gui.IWidget)

setRootWidget

public void setRootWidget(boolean isRootWidget)
Specified by:
setRootWidget in interface org.xulux.api.gui.IWidget
See Also:
IWidget.setRootWidget(boolean)

registerRule

public void registerRule(org.xulux.api.rules.IRule rule)
Specified by:
registerRule in interface org.xulux.api.gui.IWidget
See Also:
IWidget.registerRule(org.xulux.api.rules.IRule)

getWidgetType

public java.lang.String getWidgetType()
Specified by:
getWidgetType in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getWidgetType()

setLazyProperty

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

isRefreshing

public boolean isRefreshing()
Specified by:
isRefreshing in interface org.xulux.api.gui.IWidget
See Also:
IWidget.isRefreshing()

setEnabled

public void setEnabled(boolean enable)
Specified by:
setEnabled in interface org.xulux.api.gui.IWidget
See Also:
IWidget.setEnabled(boolean)

ignoreUse

public void ignoreUse(boolean ignoreUse)
Specified by:
ignoreUse in interface org.xulux.api.gui.IWidget
See Also:
IWidget.ignoreUse(boolean)

addXuluxListener

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

setProperty

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

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.xulux.api.gui.IWidget
See Also:
IWidget.isEnabled()

isVisible

public boolean isVisible()
Specified by:
isVisible in interface org.xulux.api.gui.IWidget
See Also:
IWidget.isVisible()

getRectangle

public org.xulux.api.gui.IWidgetRectangle getRectangle()
Specified by:
getRectangle in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getRectangle()

setSize

public void setSize(int width,
                    int height)
Specified by:
setSize in interface org.xulux.api.gui.IWidget
See Also:
IWidget.setSize(int, int)

setPosition

public void setPosition(int x,
                        int y)
Specified by:
setPosition in interface org.xulux.api.gui.IWidget
See Also:
IWidget.setPosition(int, int)

setField

public void setField(java.lang.String field)
Specified by:
setField in interface org.xulux.api.gui.IWidget
See Also:
IWidget.setField(java.lang.String)

setProvider

public void setProvider(java.lang.String provider)
Specified by:
setProvider in interface org.xulux.api.gui.IWidget
See Also:
IWidget.setProvider(java.lang.String)

getProperties

public java.util.Map getProperties()
Specified by:
getProperties in interface org.xulux.api.gui.IWidget
See Also:
IWidget.getProperties()


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