Ontimize 5.2072EN

com.ontimize.gui.field
Interface FormComponent

All Superinterfaces:
Internationalization
All Known Subinterfaces:
AdvancedDataComponent, DataComponent, DataComponentGroup, ReferenceComponent, ReferenceDataComponent, ValueChangeDataComponent
All Known Implementing Classes:
AbstractButtonSelection, AbstractFormComponent, AbstractMultipleReferenceDataField, AlarmList, AnalogImage, ApplicationMenuBar, ApplicationToolBar, ApToolBarButton, ApToolBarFiller, ApToolBarNavigator, ApToolBarSeparator, ApToolBarToggleButton, BackgroundImageGroup, BasicDataComponentGroup, BasicTree, Button, ButtonBar, ButtonGroupDataField, CalculatedExpressionDataField, CalendarDataField, CardPanel, CellEditor, Chart, Chart_0_9, Chart_1_0, CheckDataField, CheckMenuItem, CheckToggleImage, CollapsibleGroup, CollapsibleGroupPanel, CollapsiblePanel, CollapsiblePanelFiller, Column, ComboReferenceCellEditor, CurrencyDataField, DataField, DataLabel, DateDataField, EntityResultViewer, ExtendedMultiReference, ExtendedTable, Form, Form2HTMLDataField, Grid, HorizontalSeparator, HTMLComponent, HTMLDataField, ImageDataField, ImageField, IntegerDataField, JImage, Label, MemoryMonitorComponent, Menu, MenuItem, MenuSeparator, MultiReference, NavigatorMenuGUI, PermissionTree, PivotTable, QueryButton, QueryFilterButton, RadioItemGroup, RadioMenuItem, RealDataField, ReferenceCellEditor, ReferenceComboDataField, ReferenceDataField, ReferenceExtDataField, Row, RTFDataField, Scroll, ServerPermissionManagerComponent, SliderDataField, SplitPane, SubForm, SurfaceChartComponent, Tab, Table, TabPanel, TextArea, ToggleButton, ToggleImage, TwoLevelContainer, TwoLevelImageComponent

public interface FormComponent
extends Internationalization

This interface defines the methods that allows to initialize objects with their parameters, also allows to get information about their position in forms and finally, sets this active or inactive state. All components that will be created by xml constructor must implement this interface and a public constructor like:
public constructor(Hashtable params)

Author:
Imatia Innovation

Field Summary
static boolean DEBUG
          DEBUG mode.
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Method Summary
 java.lang.Object getConstraints(java.awt.LayoutManager parentLayout)
          Description method to return the constraints component to place correctly in parent container.
 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 setEnabled(boolean enabled)
          Description method to set enabled or not the component according the boolean condition in parameter.
 void setVisible(boolean visible)
          Description method to set visible or not the component according the boolean condition in parameter.
 
Methods inherited from interface com.ontimize.gui.i18n.Internationalization
getTextsToTranslate, setComponentLocale, setResourceBundle
 

Field Detail

DEBUG

public static final boolean DEBUG
DEBUG mode. By default, false

See Also:
Constant Field Values
Method Detail

init

public void init(java.util.Hashtable parameters)
          throws java.lang.Exception
Main method to init an object from parameters hashtable.

Parameters:
parameters - the hashtable with pairs (Key,Value). For example:

Key Value
align center
attr attribute
... ...
Throws:
java.lang.Exception - when Exception occurs

getConstraints

public java.lang.Object getConstraints(java.awt.LayoutManager parentLayout)
Description method to return the constraints component to place correctly in parent container.

Parameters:
parentLayout - the parent container reference
Returns:
the constraints for the component

setEnabled

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

Parameters:
enabled - the enabled condition

setVisible

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

Parameters:
visible - the visibility condition

isEnabled

public boolean isEnabled()
Description method to check when a component is or not enabled.

Returns:
the enabled condition

Ontimize