public abstract class SampleBase extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HTML_SRC_DIR
Directory where HTML-ified source code is generated
|
com.google.gwt.user.client.ui.HTML |
sourceHtml
The HTML-ified source code
|
com.google.gwt.user.client.ui.TabLayoutPanel |
tabPanel
The tab panel containing this sample
|
static String |
UIBINDER_SRC_DIR
Directory where HTML-ified UiBinder code is generated
|
com.google.gwt.user.client.ui.HTML |
uiBinderHtml
The HTML-ified UiBinder code
|
Constructor and Description |
---|
SampleBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
createCodeTabs(String sampleName)
Dynamically create the source code tab and UiBinder code tab
|
abstract com.google.gwt.user.client.ui.TabLayoutPanel |
getPanel()
Instantiates the tab panel which contains the sample
|
protected void |
requestCodeContents(String partialPath,
com.google.gwt.user.client.ui.HTML html)
Load the sample HTML source code
|
protected void |
resize(int width,
int height)
Resizes the sample
|
public static final String HTML_SRC_DIR
public static final String UIBINDER_SRC_DIR
public com.google.gwt.user.client.ui.HTML sourceHtml
public com.google.gwt.user.client.ui.HTML uiBinderHtml
@UiField public com.google.gwt.user.client.ui.TabLayoutPanel tabPanel
public abstract com.google.gwt.user.client.ui.TabLayoutPanel getPanel()
protected void createCodeTabs(String sampleName)
sampleName
- The name of the sampleprotected void requestCodeContents(String partialPath, com.google.gwt.user.client.ui.HTML html)
protected void resize(int width, int height)
Copyright © 2018. All Rights Reserved.