org.openpermis.editor.policy.gui.forms
Class FormBuilder.AbstractRow

java.lang.Object
  extended by org.openpermis.editor.policy.gui.forms.FormBuilder.AbstractRow
All Implemented Interfaces:
FormBuilder.Row
Direct Known Subclasses:
FormBuilder.ComponentRow, FormBuilder.GapRow
Enclosing class:
FormBuilder

protected abstract static class FormBuilder.AbstractRow
extends Object
implements FormBuilder.Row

Abstract base class for rows.

Since:
0.9.0

Constructor Summary
FormBuilder.AbstractRow(String rowSpec, String gapSpec)
          Creates a new abstract row for the specified row specification.
 
Method Summary
 String getGapSpec()
          Returns specification of the vertical gap above this row.
 String getRowSpec()
          Returns the row specification for this row.
 boolean hasComponents()
          Check if this row has a row spec for components.
 boolean hasGap()
          Check if this row has a gap in front of it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openpermis.editor.policy.gui.forms.FormBuilder.Row
addComponents
 

Constructor Detail

FormBuilder.AbstractRow

public FormBuilder.AbstractRow(String rowSpec,
                               String gapSpec)
Creates a new abstract row for the specified row specification.

Parameters:
rowSpec - the row specification, null for a default specification, empty if this row has no components.
gapSpec - the gap specification, null for a default specification, empty if this row does not have a gap.
Since:
0.9.0
Method Detail

hasGap

public boolean hasGap()
Description copied from interface: FormBuilder.Row
Check if this row has a gap in front of it.

Specified by:
hasGap in interface FormBuilder.Row
Returns:
true if the row has a gap, false otherwise.
Since:
0.9.0

getGapSpec

public String getGapSpec()
Description copied from interface: FormBuilder.Row
Returns specification of the vertical gap above this row.

Specified by:
getGapSpec in interface FormBuilder.Row
Returns:
specification of the vertical gap above this row.
Since:
0.9.0

hasComponents

public boolean hasComponents()
Description copied from interface: FormBuilder.Row
Check if this row has a row spec for components.

Specified by:
hasComponents in interface FormBuilder.Row
Returns:
true if this row doesn't contain components and is only a gap row.
Since:
0.9.0

getRowSpec

public String getRowSpec()
Description copied from interface: FormBuilder.Row
Returns the row specification for this row.

Specified by:
getRowSpec in interface FormBuilder.Row
Returns:
the row specification for this row.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG