Ontimize 5.2072EN

com.ontimize.gui.container
Class RadioItemGroup

java.lang.Object
  extended byjavax.swing.ButtonGroup
      extended bycom.ontimize.gui.container.RadioItemGroup
All Implemented Interfaces:
FormComponent, Freeable, Internationalization, java.io.Serializable

public class RadioItemGroup
extends javax.swing.ButtonGroup
implements FormComponent, Freeable

This class creates a radio item group of buttons.

Author:
Imatia Innovation
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.ButtonGroup
buttons
 
Fields inherited from interface com.ontimize.gui.field.FormComponent
DEBUG
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Constructor Summary
RadioItemGroup(java.util.Hashtable parameters)
          Class constructor.
 
Method Summary
protected  void finalize()
           
 void free()
          Makes the object to release the resources.
 java.lang.Object getAttribute()
          Gets the attribute.
 java.lang.Object getConstraints(java.awt.LayoutManager layout)
          Description method to return the constraints component to place correctly in parent container.
 java.util.Vector getTextsToTranslate()
          Returns all the texts in the element suitable for being translated.
 void init(java.util.Hashtable parameters)
          Main method to init an object from parameters hashtable.
 boolean isEnabled()
          Description method to check when a component is or not enabled.
 void setComponentLocale(java.util.Locale l)
           
 void setEnabled(boolean enabled)
          Description method to set enabled or not the component according the boolean condition in parameter.
 void setResourceBundle(java.util.ResourceBundle resources)
          Sets the language resource bundle.
 void setVisible(boolean visible)
          Description method to set visible or not the component according the boolean condition in parameter.
 
Methods inherited from class javax.swing.ButtonGroup
add, getButtonCount, getElements, getSelection, isSelected, remove, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioItemGroup

public RadioItemGroup(java.util.Hashtable parameters)
Class constructor. Empty.

Parameters:
parameters - the Hashtable with parameters
Method Detail

getConstraints

public java.lang.Object getConstraints(java.awt.LayoutManager layout)
Description copied from interface: FormComponent
Description method to return the constraints component to place correctly in parent container.

Specified by:
getConstraints in interface FormComponent
Parameters:
layout - the parent container reference
Returns:
the constraints for the component

init

public void init(java.util.Hashtable parameters)
Description copied from interface: FormComponent
Main method to init an object from parameters hashtable.

Specified by:
init in interface FormComponent
Parameters:
parameters - the hashtable with pairs (Key,Value). For example:

Key Value
align center
attr attribute
... ...

getAttribute

public java.lang.Object getAttribute()
Gets the attribute.

Returns:
null

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle resources)
Description copied from interface: Internationalization
Sets the language resource bundle. When the application changes the configured language, for all the objects that implement this interface this method must be called with the new file.
The method must translate all the elements that have texts in the GUI

Specified by:
setResourceBundle in interface Internationalization
Parameters:
resources - the new language bundle.

getTextsToTranslate

public java.util.Vector getTextsToTranslate()
Description copied from interface: Internationalization
Returns all the texts in the element suitable for being translated.

Specified by:
getTextsToTranslate in interface Internationalization
Returns:
all the texts in the element suitable for being translated.

setComponentLocale

public void setComponentLocale(java.util.Locale l)
Specified by:
setComponentLocale in interface Internationalization

setEnabled

public void setEnabled(boolean enabled)
Description copied from interface: FormComponent
Description method to set enabled or not the component according the boolean condition in parameter.

Specified by:
setEnabled in interface FormComponent
Parameters:
enabled - the enabled condition

free

public void free()
Description copied from interface: Freeable
Makes the object to release the resources.

Specified by:
free in interface Freeable

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

setVisible

public void setVisible(boolean visible)
Description copied from interface: FormComponent
Description method to set visible or not the component according the boolean condition in parameter.

Specified by:
setVisible in interface FormComponent
Parameters:
visible - the visibility condition

isEnabled

public boolean isEnabled()
Description copied from interface: FormComponent
Description method to check when a component is or not enabled.

Specified by:
isEnabled in interface FormComponent
Returns:
the enabled condition

Ontimize