| net.mygwt.ui.client.viewer.Viewer net.mygwt.ui.client.viewer.TemplateViewer
TemplateViewer | public class TemplateViewer extends Viewer (Code) | | A Viewer that renders its layout using HTML fragments provided
by the label provider.
See Also: TemplateLabelProvider |
Constructor Summary | |
public | TemplateViewer() Creates a new template viewer instance. |
Method Summary | |
protected void | add(Object elem) | protected Component | createWidget() | public Widget | findItem(Object elem) | protected Element | findItemElement(Element elem) | protected Object | findModel(Element item) | public boolean | getFocusOnSelect() Returns true if focus on select is enabled. | public boolean | getSelectOnOver() Returns true if elements are selected when the cursor is
over their location. | protected List | getSelectedFromWidget() | public Widget | getWidget() | protected void | insert(Object elem, int index) | public void | moveSelectionDown() Moves the current selection down. | public void | moveSelectionUp() Moves the current selection up. | protected void | onClick(Object elem, Element el, BaseEvent be) | protected void | onHightlight(Object elem, Element el, boolean highlight) | protected void | onInputReceived(Object input) | protected void | onKeyPress(BaseEvent be) | protected void | onMouseOut(Object elem, Element el, BaseEvent be) | protected void | onMouseOver(Object elem, Element el, BaseEvent be) | protected void | onSelect(Object elem, Element el, boolean select) | public void | remove(Object elem) | public void | setFocusOnSelect(boolean focusOnSelect) Sets whether the component should receive focus when selected. | public void | setLabelProvider(IBaseLabelProvider labelProvider) | public void | setSelectOnOver(boolean selectOnOver) Sets whether elements are selected when the cursor is over their location. | public void | setSelection(ISelection selection, boolean reveal) | public void | update() | public void | update(Object elem) |
TemplateViewer | public TemplateViewer()(Code) | | Creates a new template viewer instance.
|
findItemElement | protected Element findItemElement(Element elem)(Code) | | |
getFocusOnSelect | public boolean getFocusOnSelect()(Code) | | Returns true if focus on select is enabled.
the focus on selec state |
getSelectOnOver | public boolean getSelectOnOver()(Code) | | Returns true if elements are selected when the cursor is
over their location.
the selecte on over state |
getSelectedFromWidget | protected List getSelectedFromWidget()(Code) | | |
getWidget | public Widget getWidget()(Code) | | |
moveSelectionDown | public void moveSelectionDown()(Code) | | Moves the current selection down.
|
moveSelectionUp | public void moveSelectionUp()(Code) | | Moves the current selection up.
|
onHightlight | protected void onHightlight(Object elem, Element el, boolean highlight)(Code) | | |
onInputReceived | protected void onInputReceived(Object input)(Code) | | |
onSelect | protected void onSelect(Object elem, Element el, boolean select)(Code) | | |
setFocusOnSelect | public void setFocusOnSelect(boolean focusOnSelect)(Code) | | Sets whether the component should receive focus when selected. Default
value is true .
Parameters: focusOnSelect - true to focus on select |
setSelectOnOver | public void setSelectOnOver(boolean selectOnOver)(Code) | | Sets whether elements are selected when the cursor is over their location.
Default value is fals .
Parameters: selectOnOver - the select on over state |
setSelection | public void setSelection(ISelection selection, boolean reveal)(Code) | | |
update | public void update()(Code) | | |
|
|