
public class NestedDivFrame extends Object implements Frame, CollapsibleFrame
Frame and CollapsibleFrame implementation that creates its frame using 3 sets of 3 nested DIVs. See
NestedDivFrame.html and NestedDivFrame.gss. This implementation uses images to render rounded corners.
NestedDivFrameResources MUST be extended / implemented to provide the images for this frame.
| Modifier and Type | Class and Description |
|---|---|
static interface |
NestedDivFrame.NestedDivFrameResources
Defines the required images of this frame.
|
static interface |
NestedDivFrame.NestedDivFrameStyle |
static interface |
NestedDivFrame.Template |
Frame.FrameOptionsEMPTY_FRAME| Constructor and Description |
|---|
NestedDivFrame(NestedDivFrame.NestedDivFrameResources resources) |
| Modifier and Type | Method and Description |
|---|---|
XElement |
getCollapseElem(XElement parent)
Returns the element who's visibility will be "toggled" for expanding and
collapsing.
|
XElement |
getContentElem(XElement parent) |
Size |
getFrameSize(XElement parent)
Returns the frame height and width.
|
XElement |
getHeaderElem(XElement parent) |
NestedDivFrame.NestedDivFrameResources |
getResources() |
boolean |
isHeaderHidden(XElement parent) |
void |
onFocus(XElement parent,
boolean focus) |
void |
onHideHeader(XElement parent,
boolean hide) |
void |
onOver(XElement parent,
boolean over) |
void |
onPress(XElement parent,
boolean pressed) |
String |
overClass() |
String |
pressedClass() |
void |
render(SafeHtmlBuilder builder,
Frame.FrameOptions options,
SafeHtml content) |
public NestedDivFrame(NestedDivFrame.NestedDivFrameResources resources)
public XElement getContentElem(XElement parent)
getContentElem in interface Framepublic Size getFrameSize(XElement parent)
FramegetFrameSize in interface Frameparent - the parent element or nullpublic XElement getHeaderElem(XElement parent)
getHeaderElem in interface Framepublic NestedDivFrame.NestedDivFrameResources getResources()
public void onFocus(XElement parent, boolean focus)
public boolean isHeaderHidden(XElement parent)
public void onHideHeader(XElement parent, boolean hide)
onHideHeader in interface Framepublic void onPress(XElement parent, boolean pressed)
public String pressedClass()
pressedClass in interface Framepublic void render(SafeHtmlBuilder builder, Frame.FrameOptions options, SafeHtml content)
public XElement getCollapseElem(XElement parent)
CollapsibleFramegetCollapseElem in interface CollapsibleFrameparent - the parent elementCopyright © 2016. All rights reserved.