public class RunnerLayout
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RunnerLayout.General |
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Integer> |
DEFAULT_INDEX |
static Key<java.lang.Integer> |
DROP_INDEX |
protected RunnerLayout.General |
myGeneral |
protected java.util.Set<TabImpl> |
myTabs |
protected java.util.Map<java.lang.String,ViewImpl> |
myViews |
Constructor and Description |
---|
RunnerLayout() |
Modifier and Type | Method and Description |
---|---|
void |
clearStateFor(Content content) |
TabImpl |
createNewTab() |
protected TabImpl |
findTab(int index) |
LayoutAttractionPolicy |
getAttractionPolicy(java.lang.String condition) |
java.lang.String |
getDefaultDisplayName(int defaultIndex) |
PlaceInGrid |
getDefaultGridPlace(Content content) |
TabImpl |
getOrCreateTab(int index) |
Element |
getState() |
ViewImpl |
getStateFor(Content content) |
java.lang.String |
getToFocus(java.lang.String condition) |
boolean |
isToFocus(java.lang.String id,
java.lang.String condition) |
void |
loadState(Element state) |
Element |
read(Element parentNode) |
void |
resetToDefault() |
TabImpl.Default |
setDefault(int tabID,
java.lang.String displayName,
javax.swing.Icon icon) |
ViewImpl.Default |
setDefault(java.lang.String id,
int tabIndex,
PlaceInGrid placeInGrid,
boolean isMinimized) |
void |
setDefaultToFocus(java.lang.String id,
java.lang.String condition,
LayoutAttractionPolicy policy) |
void |
setLightWeight(Content content)
States of contents marked as "lightweight" won't be persisted
|
void |
setToFocus(java.lang.String id,
java.lang.String condition) |
Element |
write(Element parentNode) |
public static final Key<java.lang.Integer> DEFAULT_INDEX
public static final Key<java.lang.Integer> DROP_INDEX
protected java.util.Map<java.lang.String,ViewImpl> myViews
protected java.util.Set<TabImpl> myTabs
protected RunnerLayout.General myGeneral
public java.lang.String getDefaultDisplayName(int defaultIndex)
public TabImpl getOrCreateTab(int index)
public TabImpl createNewTab()
protected TabImpl findTab(int index)
public Element getState()
public void loadState(Element state)
public Element read(Element parentNode)
public Element write(Element parentNode)
public void resetToDefault()
public void clearStateFor(Content content)
public TabImpl.Default setDefault(int tabID, java.lang.String displayName, javax.swing.Icon icon)
public ViewImpl.Default setDefault(java.lang.String id, int tabIndex, PlaceInGrid placeInGrid, boolean isMinimized)
public PlaceInGrid getDefaultGridPlace(Content content)
public boolean isToFocus(java.lang.String id, java.lang.String condition)
public void setToFocus(java.lang.String id, java.lang.String condition)
public void setDefaultToFocus(java.lang.String id, java.lang.String condition, LayoutAttractionPolicy policy)
public java.lang.String getToFocus(java.lang.String condition)
public LayoutAttractionPolicy getAttractionPolicy(java.lang.String condition)
public void setLightWeight(Content content)