本文整理匯總了Java中com.google.gwt.user.client.ui.DockLayoutPanel.addNorth方法的典型用法代碼示例。如果您正苦於以下問題:Java DockLayoutPanel.addNorth方法的具體用法?Java DockLayoutPanel.addNorth怎麽用?Java DockLayoutPanel.addNorth使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.user.client.ui.DockLayoutPanel
的用法示例。
在下文中一共展示了DockLayoutPanel.addNorth方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setInitialFolderManagementView
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public void setInitialFolderManagementView(FolderManagementController controller, String parentFolderPath, String baseFolderUrl,
Map<String, String> batchClassesMap) {
Label footer = new Label();
folderTableView = new FolderTableView(footer);
folderTablePresenter = new FolderTablePresenter(controller, folderTableView, parentFolderPath, baseFolderUrl);
folderSystemTreeView = new FolderSystemTreeView();
folderSystemTreePresenter = new FolderSystemTreePresenter(controller, folderSystemTreeView, parentFolderPath, footer);
SplitLayoutPanel mainContentPanel = new SplitLayoutPanel();
DockLayoutPanel leftLayoutPanel = new DockLayoutPanel(Unit.PCT);
ScrollPanel treeScrollPanel = new ScrollPanel();
treeScrollPanel.add(folderSystemTreeView);
FolderSelectionWidget folderSelectionWidget = new FolderSelectionWidget(batchClassesMap, controller.getEventBus());
leftLayoutPanel.addNorth(folderSelectionWidget, 10);
leftLayoutPanel.add(treeScrollPanel);
mainContentPanel.addWest(leftLayoutPanel, 200);
DockLayoutPanel contentMainPanel = new DockLayoutPanel(Unit.PCT);
contentMainPanel.add(folderTableView);
contentMainPanel.addStyleName(FolderManagementConstants.WHITE_BACKGROUND);
mainContentPanel.add(contentMainPanel);
mainPanel.add(mainContentPanel);
ScreenMaskUtility.unmaskScreen();
}
示例2: GitHubAuthenticatorViewImpl
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
@Inject
public GitHubAuthenticatorViewImpl(
DialogFactory dialogFactory,
GitHubLocalizationConstant locale,
ProductInfoDataProvider productInfoDataProvider) {
this.dialogFactory = dialogFactory;
this.locale = locale;
isGenerateKeys = new CheckBox(locale.authGenerateKeyLabel());
isGenerateKeys.setValue(true);
contentPanel = new DockLayoutPanel(Style.Unit.PX);
contentPanel.addNorth(
new InlineHTML(locale.authorizationDialogText(productInfoDataProvider.getName())), 20);
contentPanel.addNorth(isGenerateKeys, 20);
}
示例3: reinit
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
void reinit(PopoutWidget.ViewType viewType, DockLayoutPanel expandRoot) {
expandRoot.clear();
doBlink(false);
_expandGrid.clear();
_expandDeck.clear();
if (_topBar!=null) expandRoot.addNorth(_topBar, PopoutWidget.CONTROLS_HEIGHT_LARGE);
// if (!AllPlots.getInstance().isMenuBarPopup()) {
// expandRoot.addSouth(AllPlots.getInstance().getMenuBarInlineStatusLine(),25);
// }
if (viewType== PopoutWidget.ViewType.GRID) {
expandRoot.add(_expandGrid);
_expandGrid.setPixelSize(expandRoot.getOffsetWidth(), expandRoot.getOffsetHeight());
// GwtUtil.setHidden(oneImageFillStyle, true);
}
else if (viewType== PopoutWidget.ViewType.ONE) {
expandRoot.add(_expandDeck);
// GwtUtil.setHidden(oneImageFillStyle, false);
}
GwtUtil.setHidden(_controlPanel, _originalExpandedList.size() <= 1);
}
示例4: GwtRulerComposite
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
/**
* Constructor
*
* @param parent
* a widget which will be the parent of the new instance (cannot
* be null)
* @param style
* the style of widget to construct
* @see Composite#Composite(org.eclipse.swt.widgets.Composite, int)
*/
// public GwtRulerComposite(Composite parent, int style) {
// super(parent, style);
// addDisposeListener(new DisposeListener() {
// public void widgetDisposed(DisposeEvent e) {
// disposeResources();
// }
// });
// }
public GwtRulerComposite(LayoutPanel element) {
super(null, SWT.NONE);
this.rootElement = element;
// create dock panel here with rulers
dockLayoutPanel = new DockLayoutPanel(Unit.PX);
dockLayoutPanel.getElement().setId("INNER_DOCK_LAYOUT_PANEL");
rootElement.add(dockLayoutPanel);
northPanel = new DockLayoutPanel(Unit.PX);
northPanel.getElement().setId("NORTH_DOCK_LAYOUT_PANEL");
dockLayoutPanel.addNorth(northPanel, 19);
northPanel.addWest(createPickle(), 19);
topPartInDockPanel = new Composite(null, SWT.NONE);
LayoutPanel topPanel = (LayoutPanel) topPartInDockPanel
.getNativeWidget();
topPanel.getElement().setId("TOP_RULER");
northPanel.add(topPanel);
northPanel.forceLayout();
westPartInDockPanel = new Composite(null, SWT.NONE);
westPanel = (LayoutPanel) westPartInDockPanel.getNativeWidget();
westPanel.getElement().setId("LEFT_RULER");
dockLayoutPanel.addWest(westPanel, 19);
view = (LayoutPanel) getGwtWidget();
dockLayoutPanel.add(view);
dockLayoutPanel.forceLayout();
}
示例5: ViewWithToolbar
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public ViewWithToolbar(final PartStackUIResources resources) {
container = new DockLayoutPanel(Style.Unit.PX);
initWidget(container);
container.setSize("100%", "100%");
toolBar = new LayoutPanel();
toolBar.addStyleName(resources.partStackCss().ideBasePartToolbar());
container.addNorth(toolBar, 20);
// this hack used for adding box shadow effect to toolbar
toolBar.getElement().getParentElement().getStyle().setOverflow(Style.Overflow.VISIBLE);
}
示例6: setupAnalyzerAndReportPanel2
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public void setupAnalyzerAndReportPanel2(ScrollPanel analyzerPanel, DockLayoutPanel dPanel) {
// Create a CellTable.
final CellTable<AnalyzerResultDTO> table = new CellTable<AnalyzerResultDTO>();
setupAnalyzeResultDisplayPanel(table, dataProvider);
SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 10, true);
pager.setDisplay(table);
dataProvider.addDataDisplay(table);
// Set the width of each column.
// table.setColumnWidth(nameColumn, 35.0, Unit.PCT);
final Label errorLabelDisplay = new Label();
VerticalPanel displayPanel = new VerticalPanel();
displayPanel.add(pager);
displayPanel.add(table);
displayPanel.add(errorLabelDisplay);
displayPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
analyzerPanel.add(displayPanel);
// DoS detector panel
// Any detector error message
VerticalPanel vPanel = new VerticalPanel();
final Label errorLabelActivateDetector = new Label();
HorizontalPanel detectorPanel = new HorizontalPanel();
detectorPanel.addStyleName("essencePanel");
detectorPanel.setSpacing(10);
setupDetectorPanel(detectorPanel, errorLabelActivateDetector, dataProvider);
vPanel.add(detectorPanel);
vPanel.add(errorLabelActivateDetector);
dPanel.addNorth(vPanel, 10);
}
示例7: layoutViews
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
private void layoutViews() {
TermDetailsView termView = new TermDetailsView(eventBus, service);
TermSynonymsView synonymsView = new TermSynonymsView(eventBus, service);
RelatedTermsView relationshipsView = new RelatedTermsView(eventBus, service);
SearchInputView searchInputView = new SearchInputView(eventBus, service);
SearchOptionsView searchOptionsView = new SearchOptionsView(eventBus, service);
SearchResultsView searchResultsView = new SearchResultsView(eventBus, service, searchOptionsView);
SVGView svgView = new SVGView(eventBus, service);
//CodeListView codelistView = new CodeListView(eventBus, service);
DockLayoutPanel layoutPanel = new DockLayoutPanel(Unit.PX);
HorizontalPanel southPanel = new HorizontalPanel();
southPanel.add(termView);
southPanel.add(synonymsView);
southPanel.add(relationshipsView);
southPanel.setCellWidth(termView, "33.33%");
southPanel.setCellWidth(synonymsView, "33.33%");
southPanel.setCellWidth(relationshipsView, "33.33%");
southPanel.setWidth("100%");
FlowPanel eastPanel = new FlowPanel();
eastPanel.add(searchInputView);
eastPanel.add(searchOptionsView);
eastPanel.add(searchResultsView);
layoutPanel.addNorth(menuBar, 30);
layoutPanel.addSouth(southPanel, 197);
layoutPanel.addEast(eastPanel, 300);
layoutPanel.add(svgView);
RootLayoutPanel.get().add(layoutPanel);
}
示例8: TitlePanel
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public TitlePanel(String title, Widget body, boolean showTitle) {
titleWrapper = new HorizontalPanel();
makeTitleLabel(titleWrapper);
titleWrapper.add(titleLabel);
titleWrapper.add(titleBar);
titleWrapper.add(GwtUtil.getFiller(10, 1));
titleWrapper.setCellWidth(titleBar, "100%");
titleWrapper.setCellHorizontalAlignment(titleBar, HorizontalPanel.ALIGN_RIGHT);
dlp = new DockLayoutPanel(Style.Unit.PX);
if (showTitle) {
dlp.addNorth(titleWrapper, 23);
dlp.addNorth(GwtUtil.getFiller(1,2), 2);
}
dlp.add(body);
dlp.setSize("100%", "100%");
//
//
// FlowPanel vp = new FlowPanel();
// vp.add(titleWrapper);
// vp.add(body);
// vp.setSize("100%", "100%");
initWidget(dlp);
this.body = body;
// dlp.setStyleName("standard-border");
setTitle(title);
if (BrowserUtil.isIE()) {
DOM.setStyleAttribute(titleLabel.getElement(), "whiteSpace", "nowrap");
}
}
示例9: makeAniIcon
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
protected Widget makeAniIcon() {
final DockLayoutPanel flyer = new DockLayoutPanel(Style.Unit.PCT);
Label header = new Label("Alerts");
Label body = new Label("Click on top left corner to re-open this dialog");
body.setStyleName("popup-background");
body.addStyleName("standard-border");
header.addStyleName("title-bg-color");
header.addStyleName("title-color");
flyer.addNorth(header, 20);
flyer.add(body);
GwtUtil.setStyle(flyer, "zIndex", "10");
return flyer;
}
示例10: ShellView
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public ShellView() {
shell = new DockLayoutPanel(Style.Unit.PX);
header = new SimpleLayoutPanel();
navigation = new SimpleLayoutPanel();
content = new SimpleLayoutPanel();
shell.addNorth(header, 75);
shell.addWest(navigation, 275);
shell.add(content);
initWidget(shell);
}
示例11: addPreviewTab
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
protected void addPreviewTab() {
DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
Button b = new Button("Save!", new ClickHandler() {
public void onClick(ClickEvent event) {
Window.alert("This will save...");
}
});
p.addNorth(new HTML("header"), 2);
p.addSouth(new HTML("footer"), 2);
p.addWest(b, 10);
p.add(new HTML("Here we will display the preview"));
p.setWidth(Window.getClientWidth()/5*4+"px");
p.setHeight(Window.getClientHeight()/5*4+"px");
main.add(p, "preview & save");
}
示例12: setupDecisionPanels
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public void setupDecisionPanels(ScrollPanel decisionPanel, DockLayoutPanel dPanel) {
// Create a CellTable.
final CellTable<DecisionDTO> table = new CellTable<DecisionDTO>();
setupDecisionDisplayPanel(table, dataProvider);
SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 10, true);
pager.setDisplay(table);
dataProvider.addDataDisplay(table);
final SingleSelectionModel<DecisionDTO> selectionModel = new SingleSelectionModel<DecisionDTO>();
table.setSelectionModel(selectionModel);
// Set the width of each column.
// table.setColumnWidth(nameColumn, 35.0, Unit.PCT);
final Label errorLabelDisplay = new Label();
greetingService.getDecisions(new AsyncCallbackAdapter<List<DecisionDTO>>() {
/*
public void onFailure(Throwable caught) {
errorLabelDisplay.setText(SERVER_ERROR);
}
*/
// Called by onFailure if the session is still valid
public void doFailureAction() {
errorLabelDisplay.setText(SERVER_ERROR);
}
public void onSuccess(List<DecisionDTO> result) {
dataProvider.setList(result);
}
});
VerticalPanel displayPanel = new VerticalPanel();
displayPanel.add(pager);
displayPanel.add(table);
displayPanel.add(errorLabelDisplay);
displayPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
decisionPanel.add(displayPanel);
VerticalPanel vPanel = new VerticalPanel();
final Label errorLabelControl = new Label();
HorizontalPanel controlPanel = new HorizontalPanel();
controlPanel.addStyleName("essencePanel");
controlPanel.setSpacing(10);
setupControlPanel(controlPanel, errorLabelControl, dataProvider);
vPanel.add(controlPanel);
vPanel.add(errorLabelControl);
dPanel.addNorth(vPanel, 10);
}
示例13: setupActionPanels
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public void setupActionPanels(ScrollPanel ActionPanel, DockLayoutPanel dPanel) {
// Create a CellTable.
final CellTable<ActionDTO> table = new CellTable<ActionDTO>();
setupActionDisplayPanel(table, dataProvider);
SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 10, true);
pager.setDisplay(table);
dataProvider.addDataDisplay(table);
final SingleSelectionModel<ActionDTO> selectionModel = new SingleSelectionModel<ActionDTO>();
table.setSelectionModel(selectionModel);
// Set the width of each column.
// table.setColumnWidth(nameColumn, 35.0, Unit.PCT);
final Label errorLabelDisplay = new Label();
greetingService.getActions(new AsyncCallbackAdapter<List<ActionDTO>>() {
/*
public void onFailure(Throwable caught) {
errorLabelDisplay.setText(SERVER_ERROR);
}
*/
// Called by onFailure if the session is still valid
public void doFailureAction() {
errorLabelDisplay.setText(SERVER_ERROR);
}
public void onSuccess(List<ActionDTO> result) {
dataProvider.setList(result);
}
});
VerticalPanel displayPanel = new VerticalPanel();
displayPanel.add(pager);
displayPanel.add(table);
displayPanel.add(errorLabelDisplay);
displayPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
ActionPanel.add(displayPanel);
VerticalPanel vPanel = new VerticalPanel();
final Label errorLabelControl = new Label();
HorizontalPanel controlPanel = new HorizontalPanel();
controlPanel.addStyleName("essencePanel");
controlPanel.setSpacing(10);
setupControlPanel(controlPanel, errorLabelControl, dataProvider);
vPanel.add(controlPanel);
vPanel.add(errorLabelControl);
dPanel.addNorth(vPanel, 10);
}
示例14: setupDecisionRulePanel
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
public void setupDecisionRulePanel(ScrollPanel analyzerPanel, DockLayoutPanel dPanel) {
final Label errorLabelDisplay = new Label();
// Create a CellTable.
final CellTable<DecisionRuleDTO> table = new CellTable<>();
setupDecisionRuleDisplayPanel(table, errorLabelDisplay);
SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 10, true);
pager.setDisplay(table);
dataProvider.addDataDisplay(table);
final SingleSelectionModel<DecisionRuleDTO> selectionModel = new SingleSelectionModel<>();
table.setSelectionModel(selectionModel);
greetingService.getDecisionRules(new AsyncCallbackAdapter<List<DecisionRuleDTO>>() {
// Called by onFailure if the session is still valid
public void doFailureAction() {
errorLabelDisplay.setText(SERVER_ERROR);
}
public void onSuccess(List<DecisionRuleDTO> result) {
dataProvider.setList(result);
}
});
VerticalPanel displayPanel = new VerticalPanel();
displayPanel.add(pager);
displayPanel.add(table);
displayPanel.add(errorLabelDisplay);
displayPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
analyzerPanel.add(displayPanel);
VerticalPanel vPanel = new VerticalPanel();
final Label errorLabelActivateDetector = new Label();
HorizontalPanel addRuleAndFilterPanel = new HorizontalPanel();
addRuleAndFilterPanel.addStyleName("essencePanel");
addRuleAndFilterPanel.setSpacing(10);
setupControlPanel(addRuleAndFilterPanel, errorLabelActivateDetector, dataProvider);
vPanel.add(addRuleAndFilterPanel);
vPanel.add(errorLabelActivateDetector);
dPanel.addNorth(vPanel, 10);
}
示例15: ExtendedDockPanel
import com.google.gwt.user.client.ui.DockLayoutPanel; //導入方法依賴的package包/類
/**
* Extended dock panel
*/
public ExtendedDockPanel() {
dockPanel = new DockLayoutPanel(Unit.PX);
folderSelectPopup = new FolderSelectPopup();
enableKeyShorcuts();
// Object initialization
topPanel = new TopPanel();
leftBorderPanel = new VerticalBorderPanel();
rightBorderPanel = new VerticalBorderPanel();
bottomPanel = new BottomPanel();
// Desktop panels initialization
desktop = new Desktop();
// Search panels initialization
search = new Search();
// Dashboard panel initialization
dashboard = new Dashboard();
// Administration panel initialization
administration = new Administration();
// set inner component's size
setWidgetsSize();
actualView = UIDockPanelConstants.DESKTOP;
// Creates the dockPanel
dockPanel.addNorth(topPanel, TopPanel.PANEL_HEIGHT);
dockPanel.addSouth(bottomPanel, BottomPanel.PANEL_HEIGHT);
dockPanel.addWest(leftBorderPanel, VERTICAL_BORDER_PANEL_WIDTH);
dockPanel.addEast(rightBorderPanel, VERTICAL_BORDER_PANEL_WIDTH);
dockPanel.add(desktop);
Window.addResizeHandler(new ResizeHandler() {
@Override
public void onResize(ResizeEvent event) {
setWidgetsSize();
Main.get().mainPanel.topPanel.toolBar.windowResized(); // splitter changes
}
});
initWidget(dockPanel);
}