org.xulux.guilayer.swing.widgets
Class ButtonGroup

java.lang.Object
  extended by org.xulux.gui.XuluxWidget
      extended by org.xulux.gui.ContainerWidget
          extended by org.xulux.guilayer.swing.widgets.ButtonGroup
All Implemented Interfaces:
java.io.Serializable, org.xulux.api.gui.IContainerWidgetHandler, org.xulux.api.gui.IShowChildWidgets, org.xulux.api.gui.IWidget

public class ButtonGroup
extends org.xulux.gui.ContainerWidget
implements org.xulux.api.gui.IShowChildWidgets

Combine a number of checkboxes, buttons or radiobuttons into one group, which contain 1 field value. This implements IShowChildWidgets, which says to the parent that this widget cannot be shown on screen, but it's children do..

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

Field Summary
 
Fields inherited from class org.xulux.gui.ContainerWidget
widgets
 
Fields inherited from class org.xulux.gui.XuluxWidget
initialized, initializing, isRefreshing, log, previousValue, properties, value, visible
 
Constructor Summary
ButtonGroup(java.lang.String name)
           
 
Method Summary
 void addToParent(org.xulux.api.gui.IWidget widget)
           
 boolean canContainValue()
           
 void focus()
           
 java.lang.Object getGuiValue()
           
 java.lang.Object getNativeWidget()
           
 void initialize()
           
 boolean isValueEmpty()
           
 void refresh()
           
protected  void setEnabledAllChildren()
          Enables or disables all children of this group
 
Methods inherited from class org.xulux.gui.ContainerWidget
addChildWidget, canBeRootWidget, canContainChildren, destroy, destroyChildren, getChildWidgets, getWidgetInitializer, initializeChildren
 
Methods inherited from class org.xulux.gui.XuluxWidget
addDependency, addPropertyHandler, addPropertyHandler, addXuluxListener, clear, equals, getDependencies, getField, getName, getParent, getPart, getPrefix, getPreviousValue, getProperties, getProperty, getPropertyHandler, getPropertyHandlers, getProvider, getRealProperty, getRealValue, getRectangle, getRules, getValue, 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, setProperty, setProvider, setRequired, setRootWidget, setSize, setSkip, setValidValue, setValue, setVisible, setWidgetInitializer, setWidgetType, toString, updateWidget
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ButtonGroup

public ButtonGroup(java.lang.String name)
Parameters:
name - the name of the buttongroup
Method Detail

addToParent

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

getNativeWidget

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

initialize

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

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()

setEnabledAllChildren

protected void setEnabledAllChildren()
Enables or disables all children of this group


getGuiValue

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

focus

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

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()


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