Component Container Panel MlPanel
This object serves as the base class for all Panel derived components in the Microline Toolkit. It provides a resource mechanism which allows setting and getting resources on derived objects.
Name Type Default background Color getBackground() font Font getFont() foreground Color getForeground()
background
The background color of the component.
font
The component's font.
foreground
The foreground color of the component.
public boolean getBooleanValue(String name)
Returns the value of the resource given by name.
public int getIntValue(String name)
Returns the value of the resource given by name.
public Object getValue(String name)
Returns the value of the resource given by name. The
type of the value returned is determined by the resource. Integer values
will return as Integer objects, boolean values as Boolean objects, etc.
public void setValue(String name, int value)
public void setValue(String name, boolean value)
public void setValue(String name, Object value)
Sets a single resource value on the component. The resource is specified
by the name and value passed to this method.
When setting more than one resource, it is much more effecient to use
the setValues() call instead of calling this method a number of times.
public void setValues(MlResources res)
Sets a number of resources on the component. All resources specified in
res will be applied to the component.