Generalities

Class: MonoiComponent

Description

This is the superclass of all Monoi components. All the base information and primary properties of any widget is hold by this class.

API

  • Constructors
public MonoiComponent (MonoiContainer container) Constructs a new instance of this class given its parent container
  • Methods
void build() Builds a component
void fillSpace() Fills the space in the vertical and in the horizontal
void fillVerticalSpace() Fills the space in the vertical
void fillHorizontalSpace( Fills the space in the horizontal
String getBehaviorPolicy() Gets the behavior Policy
MonoiContainer getContainer() Gets the container
Context getContext() Gets the context
Behavior getCurrentBehavior() Gets the current Behavior
String getDefaultBehaviorPolicy() Gets the defaultBehaviorPolicy
Alignment getHAlign() Gets the horizontal alignment
Integer getHeight() Gets the height
int getHSpan() Gets the horizontal span
String getLastSelectedMenuId() Gets the last selected menu ID
Alignment getVAlign() Gets the vertical alighment
int getVSpan() Gets the vertical span
boolean isEnabled() True if enable
boolean isValidable() True if validable
boolean isVisible() True if visible
void setBehaviorPolicy(String behaviorPolicy) Sets the behaviorPolicy
void setContext(Context context) Sets the context
void setCurrentBehavior(Behavior currentBehavior) Sets the currentBehavior
void setEnabled(boolean enabled) Sets the activation
void setHAlign(Alignment align) Sets the horizontal alignment
void setHeight(Integer height) Sets the height
void setHSpan(int span) Sets the horizontal span
void setValidable(boolean validable) Sets the validation
void setVAlign(Alignment align) Sets the vertical alignment
void setVisible(boolean visible) Sets the visibility
void setVSpan(int span) Sets vertical span
void update(Observable context, Object key) Updates Context

Class: MonoiDataComponent extends MonoiComponent

Description

This is also a superclass for components that are linked to some data in a context. In fact, most of Monoi components have this link.

API

  • Constructors
MonoiDataComponent() Constructs a new instance of this class given nothing
MonoiDataComponent(MonoiContainer container) Constructs a new instance of this class given its parent container
  • Methods
void addInputDelegate (IInputDelegate inputDelegate) Adds an inputDelegate
void addValidator (IValidator validator) Adds a validator
String getAbsoluteValueDataPath() Gets the absolute path of data's path
List<IValidator> getValidators() Gets a list of validators
String getValueDataPath() Gets the valueDataPath
boolean isUpdateOriginator() True if it's UpdateOriginator
Object lookForData(String dataPath) Looks for the data with a specific path
void setUpdateOriginator (boolean updateOriginator) Sets the UpdateOriginator
void setValidators (List<IValidator> validators) Sets a list of Validators
void setValueDataPath (String dataPath) Sets the valueDataPath
void setValueDataPath (String dataPath, boolean absolute) Sets the absolute path if absolute is true
void update(Observable context, Object path) Update the context
ValidationResult validate() Gets the validation's result

Class: MonoiContainer extends MonoiDataComponent

Description

The superclass of Monoi containers. It contains some general functions at the container's level.

API

  • Constructors
MonoiContainer(MonoiContainer parent) Constructs a new instance of this class given its parent container
  • Methods
void addInputDelegate(IInputDelegate inputDelegate) Adds an inputDelegate
String getAbsoluteDataPath() Gets the absolute path
String getBehaviorPolicy() Gets the behaviorPolicy
String getDataPath() Gets the data's path
void setBehaviorPolicy(String policy) Sets the behaviorPolicy
void setDataPath(String dataPath) Sets the data's path
void setTheLastComponent(MonoiComponent theLastComponent) Sets the last component
ValidationResult validate() Gets the validation's result

Class: MonoiCollectionComponent extends MonoiDataComponent

Description

Some components are linked to collections of data in the context. This is the superclass of this kind of components.

API

  • Constructors
MonoiCollectionComponent() Constructs a new instance of this class with nothing
MonoiCollectionComponent( MonoiContainer container) Constructs a new instance of this class given its parent container

Methods

String getAbsoluteCollectionDataPath() Gets the absolute path of collection data
String getCollectionDataPath() Gets the path of collection data
setCollectionDataPath(String collectionDataPath) Sets the path of collection data
void setCollectionDataPath(String collectionDataPath, boolean absolute) Sets the absolute path of collection data if absolute is true