|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.vaadin.terminal.gwt.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow
public class VScrollTable.VScrollTableBody.VScrollTableRow
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
| Field Summary | |
|---|---|
protected ArrayList<com.google.gwt.user.client.ui.Widget> |
childWidgets
|
protected int |
rowKey
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
VScrollTable.VScrollTableBody.VScrollTableRow()
Add a dummy row, used for measurements if Table is empty. |
|
VScrollTable.VScrollTableBody.VScrollTableRow(UIDL uidl,
char[] aligns)
|
|
| Method Summary | |
|---|---|
void |
addCell(UIDL rowUidl,
String text,
char align,
String style,
boolean textIsHTML,
boolean sorted)
|
void |
addCell(UIDL rowUidl,
String text,
char align,
String style,
boolean textIsHTML,
boolean sorted,
String description)
|
void |
addCell(UIDL rowUidl,
com.google.gwt.user.client.ui.Widget w,
char align,
String style,
boolean sorted)
|
protected void |
addCellsFromUIDL(UIDL uidl,
char[] aligns,
int col,
int visibleColumnIndex)
|
Action[] |
getActions()
|
RenderSpace |
getAllocatedSpace(com.google.gwt.user.client.ui.Widget child)
Returns the size currently allocated for the child component. |
ApplicationConnection |
getClient()
|
int |
getIndex()
|
String |
getKey()
|
String |
getPaintableId()
|
boolean |
hasChildComponent(com.google.gwt.user.client.ui.Widget component)
Is a given component child of this layout. |
protected void |
initCellWidths()
|
protected void |
initCellWithText(String text,
char align,
String style,
boolean textIsHTML,
boolean sorted,
String description,
com.google.gwt.dom.client.TableCellElement td)
|
protected void |
initCellWithWidget(com.google.gwt.user.client.ui.Widget w,
char align,
String style,
boolean sorted,
com.google.gwt.dom.client.TableCellElement td)
|
boolean |
isBefore(VScrollTable.VScrollTableBody.VScrollTableRow row1)
Makes a check based on indexes whether the row is before the compared row. |
boolean |
isInViewPort()
Detects whether row is visible in tables viewport. |
protected boolean |
isRenderHtmlInCells()
Overriding this and returning true causes all text cells to be rendered as HTML. |
boolean |
isSelected()
Has the row been selected? |
Iterator<com.google.gwt.user.client.ui.Widget> |
iterator()
|
protected void |
onAttach()
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
|
protected void |
onDetach()
|
protected void |
paintComponent(Paintable p,
UIDL uidl)
|
boolean |
remove(com.google.gwt.user.client.ui.Widget w)
|
void |
replaceChildComponent(com.google.gwt.user.client.ui.Widget oldComponent,
com.google.gwt.user.client.ui.Widget newComponent)
Replace child of this layout with another component. |
boolean |
requestLayout(Set<Paintable> children)
Called when a child components size has been updated in the rendering phase. |
protected void |
setCellWidth(int cellIx,
int width)
|
void |
showContextMenu(com.google.gwt.user.client.Event event)
|
protected void |
startRowDrag(com.google.gwt.user.client.Event event,
int type,
com.google.gwt.user.client.Element targetTdOrTr)
|
void |
toggleSelection()
Toggle the selection of the row |
void |
updateCaption(Paintable component,
UIDL uidl)
Update child components caption, description and error message. |
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client)
|
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
add, add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ArrayList<com.google.gwt.user.client.ui.Widget> childWidgets
protected final int rowKey
| Constructor Detail |
|---|
public VScrollTable.VScrollTableBody.VScrollTableRow(UIDL uidl,
char[] aligns)
public VScrollTable.VScrollTableBody.VScrollTableRow()
| Method Detail |
|---|
protected void initCellWidths()
protected void setCellWidth(int cellIx,
int width)
protected void addCellsFromUIDL(UIDL uidl,
char[] aligns,
int col,
int visibleColumnIndex)
protected boolean isRenderHtmlInCells()
public boolean isInViewPort()
public boolean isBefore(VScrollTable.VScrollTableBody.VScrollTableRow row1)
row1 -
public int getIndex()
protected void paintComponent(Paintable p,
UIDL uidl)
protected void onAttach()
onAttach in class com.google.gwt.user.client.ui.Widgetprotected void onDetach()
onDetach in class com.google.gwt.user.client.ui.Widgetpublic String getKey()
public void addCell(UIDL rowUidl,
String text,
char align,
String style,
boolean textIsHTML,
boolean sorted)
public void addCell(UIDL rowUidl,
String text,
char align,
String style,
boolean textIsHTML,
boolean sorted,
String description)
protected void initCellWithText(String text,
char align,
String style,
boolean textIsHTML,
boolean sorted,
String description,
com.google.gwt.dom.client.TableCellElement td)
public void addCell(UIDL rowUidl,
com.google.gwt.user.client.ui.Widget w,
char align,
String style,
boolean sorted)
protected void initCellWithWidget(com.google.gwt.user.client.ui.Widget w,
char align,
String style,
boolean sorted,
com.google.gwt.dom.client.TableCellElement td)
public Iterator<com.google.gwt.user.client.ui.Widget> iterator()
iterator in interface com.google.gwt.user.client.ui.HasWidgetsiterator in interface Iterable<com.google.gwt.user.client.ui.Widget>public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.Panelpublic void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widget
protected void startRowDrag(com.google.gwt.user.client.Event event,
int type,
com.google.gwt.user.client.Element targetTdOrTr)
public void showContextMenu(com.google.gwt.user.client.Event event)
public boolean isSelected()
public void toggleSelection()
public Action[] getActions()
getActions in interface ActionOwnerpublic ApplicationConnection getClient()
getClient in interface ActionOwnerpublic String getPaintableId()
getPaintableId in interface ActionOwnerpublic RenderSpace getAllocatedSpace(com.google.gwt.user.client.ui.Widget child)
Container
getAllocatedSpace in interface Containerpublic boolean hasChildComponent(com.google.gwt.user.client.ui.Widget component)
Container
hasChildComponent in interface Containercomponent - Component to test.
public void replaceChildComponent(com.google.gwt.user.client.ui.Widget oldComponent,
com.google.gwt.user.client.ui.Widget newComponent)
Container
replaceChildComponent in interface ContaineroldComponent - Child to be replacednewComponent - Child that replaces the oldComponentpublic boolean requestLayout(Set<Paintable> children)
Container
requestLayout in interface Containerchildren - Set of child widgets whose size have changed
public void updateCaption(Paintable component,
UIDL uidl)
ContainerEach component is responsible for maintaining its caption, description and error message. In most cases components doesn't want to do that and those elements reside outside of the component. Because of this layouts must provide service for it's childen to show those elements for them.
updateCaption in interface Containercomponent - Child component for which service is requested.uidl - UIDL of the child component.
public void updateFromUIDL(UIDL uidl,
ApplicationConnection client)
updateFromUIDL in interface Paintable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||