|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<LayoutType>
org.crosswire.common.swing.desktop.LayoutType
public enum LayoutType
Types of ViewLayouts. Currently there are two types of desktop layouts:
for license details.
The copyright to this program is held by it's authors.
Enum Constant Summary | |
---|---|
MDI
Multiple Document View |
|
TDI
Tabbed View |
Field Summary | |
---|---|
private AbstractViewLayout |
layout
The actual layout |
Method Summary | |
---|---|
abstract AbstractViewLayout |
createLayout()
Create the appropriate kind of view layout |
static LayoutType |
fromInteger(int ordinal)
Lookup method by ordinal value |
static LayoutType |
fromString(String name)
Lookup method to convert from a String |
AbstractViewLayout |
getLayout()
Return the layout |
int |
toInteger()
Get an integer representation for this LayoutType |
static LayoutType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LayoutType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
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 |
---|
public static final LayoutType TDI
public static final LayoutType MDI
Field Detail |
---|
private transient AbstractViewLayout layout
Method Detail |
---|
public static LayoutType[] values()
for (LayoutType c : LayoutType.values()) System.out.println(c);
public static LayoutType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic AbstractViewLayout getLayout()
public abstract AbstractViewLayout createLayout()
public int toInteger()
public static LayoutType fromString(String name)
public static LayoutType fromInteger(int ordinal)
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |