org.openpermis.editor.policy.view
Enum WizardDialog.ContentStyle

java.lang.Object
  extended by java.lang.Enum<WizardDialog.ContentStyle>
      extended by org.openpermis.editor.policy.view.WizardDialog.ContentStyle
All Implemented Interfaces:
Serializable, Comparable<WizardDialog.ContentStyle>
Enclosing class:
WizardDialog

protected static enum WizardDialog.ContentStyle
extends Enum<WizardDialog.ContentStyle>

Determines how the content is presented.

Since:
0.9.0

Enum Constant Summary
BORDERED
          The content is added with appropriate wizard like borders.
PLAIN
          The content is used unmodified.
SCROLLING
          The content is wrapped in a scroll pane.
 
Method Summary
static WizardDialog.ContentStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WizardDialog.ContentStyle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
abstract  JComponent wrap(JComponent target)
          Wraps the target component according to the content style.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SCROLLING

public static final WizardDialog.ContentStyle SCROLLING
The content is wrapped in a scroll pane.

Since:
0.9.0

BORDERED

public static final WizardDialog.ContentStyle BORDERED
The content is added with appropriate wizard like borders.

Since:
0.9.0

PLAIN

public static final WizardDialog.ContentStyle PLAIN
The content is used unmodified.

Since:
0.9.0
Method Detail

values

public static WizardDialog.ContentStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (WizardDialog.ContentStyle c : WizardDialog.ContentStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static WizardDialog.ContentStyle valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

wrap

public abstract JComponent wrap(JComponent target)
Wraps the target component according to the content style.

Parameters:
target - the target to wrap.
Returns:
the wrapped component.
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