Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gui4j.component.factory
Class Gui4jTableLayoutFactory  view Gui4jTableLayoutFactory download Gui4jTableLayoutFactory.java

java.lang.Object
  extended byorg.gui4j.core.Gui4jComponentFactory
      extended byorg.gui4j.component.factory.Gui4jJComponentFactory
          extended byorg.gui4j.component.factory.Gui4jTableLayoutFactory
All Implemented Interfaces:
org.gui4j.exception.ErrorTags, java.io.Serializable, SubElemented

public final class Gui4jTableLayoutFactory
extends Gui4jJComponentFactory
implements SubElemented

Syntax:
<tableLayout rows=$rowStr col=$colStr>
<placeTl row="0" col="0" hAlign="left" vAlign="top" id="xxx"/>
</tableLayout>
rowStr="p,f,m,100.5"
colStr="preferred,fill,minimum,100.5"


Nested Class Summary
 
Nested classes inherited from class org.gui4j.core.Gui4jComponentFactory
org.gui4j.core.Gui4jComponentFactory.SubElement
 
Field Summary
private static java.lang.String COL
           
private static java.lang.String COLS
           
private static java.lang.String HALIGN
           
private static java.lang.String HEIGHT
           
private static java.lang.String HSPACING
           
private static java.lang.String ID
           
private static java.util.Map mHAlign
           
private static java.util.Map mVAlign
           
private static java.lang.String NAME
           
private static java.lang.String PLACEMENT
           
private static java.lang.String ROW
           
private static java.lang.String ROWS
           
private static java.lang.String VALIGN
           
private static java.lang.String VSPACING
           
private static java.lang.String WIDTH
           
 
Fields inherited from class org.gui4j.component.factory.Gui4jJComponentFactory
 
Fields inherited from class org.gui4j.core.Gui4jComponentFactory
CDATA, CONTEXT, DTD_IMPLIED, DTD_REQUIRED, ELEMENT_COMPONENT, ELEMENT_GUI4JREF, ENABLED, EVENT_AWARE, FIELD_Id, FIELD_Style, FIELDGui4jRef_Id, FOCUSABLE, IMPLIED, NOT_EVENT_AWARE, REQUIRED, VISIBLE
 
Fields inherited from interface org.gui4j.exception.ErrorTags
EXCEPTION_OCCURED, PROGRAMMING_ERROR, PROGRAMMING_ERROR_illegal_access_exception, PROGRAMMING_ERROR_instantiation_exception, PROGRAMMING_ERROR_invocation_target_exception, PROGRAMMING_ERROR_method_ambiguous, PROGRAMMING_ERROR_method_not_found, PROGRAMMING_ERROR_parameter_null, RESOURCE_ERROR, RESOURCE_ERROR_access_type_not_compatible, RESOURCE_ERROR_access_unexpected_character, RESOURCE_ERROR_access_unexpected_end, RESOURCE_ERROR_access_value_type_not_defined, RESOURCE_ERROR_alias_already_defined, RESOURCE_ERROR_alias_class_not_found, RESOURCE_ERROR_alias_not_defined_in_path, RESOURCE_ERROR_alias_undefined, RESOURCE_ERROR_attribute_editable_defined, RESOURCE_ERROR_attribute_listEditable_defined, RESOURCE_ERROR_attribute_not_defined, RESOURCE_ERROR_double_DataConversionException, RESOURCE_ERROR_element_at_row_col_already_defined, RESOURCE_ERROR_gui4jComponent_already_defined, RESOURCE_ERROR_gui4jComponent_already_registered, RESOURCE_ERROR_gui4jComponent_not_defined, RESOURCE_ERROR_gui4jComponent_not_registered, RESOURCE_ERROR_int_DataConversionException, RESOURCE_ERROR_invalid_column, RESOURCE_ERROR_invalid_defaultButton, RESOURCE_ERROR_invalid_keystroke, RESOURCE_ERROR_invalid_row, RESOURCE_ERROR_invalid_url, RESOURCE_ERROR_jdom_exception, RESOURCE_ERROR_labelform_column_conflict, RESOURCE_ERROR_placement_must_contain_gui4jComponent, RESOURCE_ERROR_property_getter_type_incompatible, RESOURCE_ERROR_style_defined_twice, RESOURCE_ERROR_style_not_defined, RESOURCE_ERROR_tableLayout_invalid_col_row_str, RESOURCE_ERROR_type_not_compatible, RESOURCE_ERROR_unexpected_gui4jStyle_end, RESOURCE_ERROR_unknown_param, RESOURCE_ERROR_unknown_param_in_include
 
Constructor Summary
Gui4jTableLayoutFactory()
           
 
Method Summary
 void addInnerAttributes(java.lang.String elementName, java.util.List list)
           
 void addToplevelAttributes(java.util.List attrList, org.gui4j.util.Filter filter)
           
protected  org.gui4j.component.Gui4jJComponent defineGui4jJComponentBy(org.gui4j.core.Gui4jComponentContainer gui4jComponentContainer, java.lang.String id, org.dom4j.LElement e)
           
 java.lang.String[] getInnerElements()
          Returns an array with all inner elements that are defined by this component.
 java.lang.String getName()
          Returns the name of the component
 org.gui4j.core.Gui4jComponentFactory.SubElement getSubElement(java.lang.String elementName)
           
private  double[] parseRowColStr(java.lang.String str, java.net.URL configurationSource, int line)
           
 void writeDTD(java.io.PrintWriter out)
          Writes the DTD of this component to the given stream
 
Methods inherited from class org.gui4j.component.factory.Gui4jJComponentFactory
defineBy, defineProperties
 
Methods inherited from class org.gui4j.core.Gui4jComponentFactory
attrList2Arr, checkErrorList, constructAttributeType, defineProperties, definePropertyEnabled, definePropertyVisible, getDoubleValue, getGui4j, getGui4jAccessInstance, getGui4jAccessInstance, getGui4jAccessInstance, getIntValue, getIntValue, getMapValue, setGui4j, setGui4jCallFactory, toString, writeElement, writeToplevelElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

PLACEMENT

private static final java.lang.String PLACEMENT
See Also:
Constant Field Values

ROWS

private static final java.lang.String ROWS
See Also:
Constant Field Values

COLS

private static final java.lang.String COLS
See Also:
Constant Field Values

HSPACING

private static final java.lang.String HSPACING
See Also:
Constant Field Values

VSPACING

private static final java.lang.String VSPACING
See Also:
Constant Field Values

ROW

private static final java.lang.String ROW
See Also:
Constant Field Values

COL

private static final java.lang.String COL
See Also:
Constant Field Values

WIDTH

private static final java.lang.String WIDTH
See Also:
Constant Field Values

HEIGHT

private static final java.lang.String HEIGHT
See Also:
Constant Field Values

HALIGN

private static final java.lang.String HALIGN
See Also:
Constant Field Values

VALIGN

private static final java.lang.String VALIGN
See Also:
Constant Field Values

ID

private static final java.lang.String ID
See Also:
Constant Field Values

mHAlign

private static final java.util.Map mHAlign

mVAlign

private static final java.util.Map mVAlign
Constructor Detail

Gui4jTableLayoutFactory

public Gui4jTableLayoutFactory()
Method Detail

defineGui4jJComponentBy

protected org.gui4j.component.Gui4jJComponent defineGui4jJComponentBy(org.gui4j.core.Gui4jComponentContainer gui4jComponentContainer,
                                                                      java.lang.String id,
                                                                      org.dom4j.LElement e)
Specified by:
defineGui4jJComponentBy in class Gui4jJComponentFactory

parseRowColStr

private double[] parseRowColStr(java.lang.String str,
                                java.net.URL configurationSource,
                                int line)

writeDTD

public void writeDTD(java.io.PrintWriter out)
Description copied from class: org.gui4j.core.Gui4jComponentFactory
Writes the DTD of this component to the given stream


getSubElement

public org.gui4j.core.Gui4jComponentFactory.SubElement getSubElement(java.lang.String elementName)
Specified by:
getSubElement in interface SubElemented

addInnerAttributes

public void addInnerAttributes(java.lang.String elementName,
                               java.util.List list)
Specified by:
addInnerAttributes in interface SubElemented

addToplevelAttributes

public void addToplevelAttributes(java.util.List attrList,
                                  org.gui4j.util.Filter filter)
Overrides:
addToplevelAttributes in class Gui4jJComponentFactory

getInnerElements

public java.lang.String[] getInnerElements()
Description copied from class: org.gui4j.core.Gui4jComponentFactory
Returns an array with all inner elements that are defined by this component. If other top level elements are allowed to be nested inside this component, they should NOT be included in the returned array.


getName

public java.lang.String getName()
Description copied from class: org.gui4j.core.Gui4jComponentFactory
Returns the name of the component