| java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.google.gwt.user.client.ui.Panel com.google.gwt.user.client.ui.SplitPanel
All known Subclasses: com.google.gwt.user.client.ui.HorizontalSplitPanel, com.google.gwt.user.client.ui.VerticalSplitPanel,
Method Summary | |
public void | add(Widget w) | static void | addAbsolutePositoning(Element elem) Sets an elements positioning to absolute. | final static void | addClipping(Element elem) Adds clipping to an element. | final static void | addScrolling(Element elem) Adds as-needed scrolling to an element. | final static void | expandToFitParentUsingCssOffsets(Element elem) Sizes and element to consume the full area of its parent using the CSS
properties left, right, top, and bottom. | final static void | expandToFitParentUsingPercentages(Element elem) Sizes an element to consume the full areas of its parent using 100% width
and height. | protected Element | getElement(int index) Gets the content element for the given index.
Parameters: index - the index of the element, only 0 and 1 are valid. | final static int | getOffsetHeight(Element elem) Returns the offsetHeight element property. | final static int | getOffsetWidth(Element elem) Returns the offsetWidth element property. | protected Element | getSplitElement() Gets the element that is acting as the splitter. | protected Widget | getWidget(int index) Gets one of the contained widgets.
Parameters: index - the index of the widget, only 0 and 1 are valid. | public boolean | isResizing() Indicates whether the split panel is being resized. | public Iterator<Widget> | iterator() | public void | onBrowserEvent(Event event) | abstract void | onSplitterResize(int x, int y) Called on each mouse drag event as the user is dragging the splitter. | abstract void | onSplitterResizeStarted(int x, int y) Called when the user starts dragging the splitter. | final static Element | preventBoxStyles(Element elem) Adds zero or none CSS values for padding, margin and border to prevent
stylesheet overrides. | public boolean | remove(Widget widget) | static void | setBottom(Element elem, String size) Convenience method to set bottom offset of an element. | final static void | setClassname(Element elem, String className) Sets the elements css class name. | final static void | setHeight(Element elem, String height) Convenience method to set the height of an element. | final static void | setLeft(Element elem, String left) Convenience method to set the left offset of an element. | final static void | setRight(Element elem, String right) Convenience method to set the right offset of an element. | abstract public void | setSplitPosition(String size) Moves the position of the splitter.
Parameters: size - the new size of the left region in CSS units (e.g. | final static void | setTop(Element elem, String top) Convenience method to set the top offset of an element. | final protected void | setWidget(int index, Widget w) Sets one of the contained widgets. | final static void | setWidth(Element elem, String width) Convenience method to set the width of an element. |
SplitPanel | SplitPanel(Element mainElem, Element splitElem, Element headElem, Element tailElem)(Code) | | Initializes the split panel.
Parameters: mainElem - the root element for the split panel Parameters: splitElem - the element that acts as the splitter Parameters: headElem - the element to contain the top or left most widget Parameters: tailElem - the element to contain the bottom or right most widget |
addAbsolutePositoning | static void addAbsolutePositoning(Element elem)(Code) | | Sets an elements positioning to absolute.
Parameters: elem - the element |
addClipping | final static void addClipping(Element elem)(Code) | | Adds clipping to an element.
Parameters: elem - the element |
addScrolling | final static void addScrolling(Element elem)(Code) | | Adds as-needed scrolling to an element.
Parameters: elem - the element |
expandToFitParentUsingCssOffsets | final static void expandToFitParentUsingCssOffsets(Element elem)(Code) | | Sizes and element to consume the full area of its parent using the CSS
properties left, right, top, and bottom. This method is used for all
browsers except IE6/7.
Parameters: elem - the element |
expandToFitParentUsingPercentages | final static void expandToFitParentUsingPercentages(Element elem)(Code) | | Sizes an element to consume the full areas of its parent using 100% width
and height. This method is used on IE6/7 where CSS offsets don't work
reliably.
Parameters: elem - the element |
getElement | protected Element getElement(int index)(Code) | | Gets the content element for the given index.
Parameters: index - the index of the element, only 0 and 1 are valid. the element |
getOffsetHeight | final static int getOffsetHeight(Element elem)(Code) | | Returns the offsetHeight element property.
Parameters: elem - the element the offsetHeight property |
getOffsetWidth | final static int getOffsetWidth(Element elem)(Code) | | Returns the offsetWidth element property.
Parameters: elem - the element the offsetWidth property |
getSplitElement | protected Element getSplitElement()(Code) | | Gets the element that is acting as the splitter.
the element |
getWidget | protected Widget getWidget(int index)(Code) | | Gets one of the contained widgets.
Parameters: index - the index of the widget, only 0 and 1 are valid. the widget |
isResizing | public boolean isResizing()(Code) | | Indicates whether the split panel is being resized.
true if the user is dragging the splitter,false otherwise |
onBrowserEvent | public void onBrowserEvent(Event event)(Code) | | |
onSplitterResize | abstract void onSplitterResize(int x, int y)(Code) | | Called on each mouse drag event as the user is dragging the splitter.
Parameters: x - the x coordinate of the mouse relative to the panel's extent Parameters: y - the y coordinate of the mosue relative to the panel's extent |
onSplitterResizeStarted | abstract void onSplitterResizeStarted(int x, int y)(Code) | | Called when the user starts dragging the splitter.
Parameters: x - the x coordinate of the mouse relative to the panel's extent Parameters: y - the y coordinate of the mouse relative to the panel's extent |
preventBoxStyles | final static Element preventBoxStyles(Element elem)(Code) | | Adds zero or none CSS values for padding, margin and border to prevent
stylesheet overrides. Returns the element for convenience to support
builder pattern.
Parameters: elem - the element the element |
setBottom | static void setBottom(Element elem, String size)(Code) | | Convenience method to set bottom offset of an element.
Parameters: elem - the element Parameters: size - a CSS length value for bottom |
setClassname | final static void setClassname(Element elem, String className)(Code) | | Sets the elements css class name.
Parameters: elem - the element Parameters: className - the class name |
setHeight | final static void setHeight(Element elem, String height)(Code) | | Convenience method to set the height of an element.
Parameters: elem - the element Parameters: height - a CSS length value for the height |
setLeft | final static void setLeft(Element elem, String left)(Code) | | Convenience method to set the left offset of an element.
Parameters: elem - the element Parameters: height - a CSS length value for left |
setRight | final static void setRight(Element elem, String right)(Code) | | Convenience method to set the right offset of an element.
Parameters: elem - the element Parameters: height - a CSS length value for right |
setSplitPosition | abstract public void setSplitPosition(String size)(Code) | | Moves the position of the splitter.
Parameters: size - the new size of the left region in CSS units (e.g. "10px","1em") |
setTop | final static void setTop(Element elem, String top)(Code) | | Convenience method to set the top offset of an element.
Parameters: elem - the element Parameters: height - a CSS length value for top |
setWidget | final protected void setWidget(int index, Widget w)(Code) | | Sets one of the contained widgets.
Parameters: index - the index, only 0 and 1 are valid Parameters: w - the widget |
setWidth | final static void setWidth(Element elem, String width)(Code) | | Convenience method to set the width of an element.
Parameters: elem - the element Parameters: height - a CSS length value for the width |
|
|