当前位置: 首页>>代码示例>>Java>>正文


Java Unit.PX属性代码示例

本文整理汇总了Java中com.google.gwt.dom.client.Style.Unit.PX属性的典型用法代码示例。如果您正苦于以下问题:Java Unit.PX属性的具体用法?Java Unit.PX怎么用?Java Unit.PX使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.google.gwt.dom.client.Style.Unit的用法示例。


在下文中一共展示了Unit.PX属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createDashboard

private void createDashboard(){
    // Add left panel
    DockLayoutPanel dockPanel = new DockLayoutPanel(Unit.PX);
    createMenu(dockPanel);
    createLeftPanelButtons(dockPanel);

    final SplitLayoutPanel mainPanel = new SplitLayoutPanel();

    // Add header
    mainPanel.addNorth(makeHeader(), 40);

    // Add navigation
    mainPanel.addWest(dockPanel, 130);
    
    // Add content
    mainPanel.add(contentPanel);

    setupListener();
    
    RootLayoutPanel.get().add(mainPanel);
    
    setBrowserWindowTitle("ESSENCE");
}
 
开发者ID:dpinney,项目名称:essence,代码行数:23,代码来源:EssenceFrontEnd.java

示例2: HistorySearch

/**
 * HistorySearch
 */
public HistorySearch() {
	stackPanel = new StackLayoutPanel(Unit.PX);
	searchSaved = new SearchSaved();
	userNews = new UserNews();
	scrollSearchSavedPanel = new ScrollPanel();
	scrollUserNewsSavedPanel = new ScrollPanel();

	scrollSearchSavedPanel.addStyleName("okm-PanelSelected");
	scrollUserNewsSavedPanel.addStyleName("okm-PanelSelected");

	scrollSearchSavedPanel.add(searchSaved);
	scrollSearchSavedPanel.setSize("100%", "100%");

	scrollUserNewsSavedPanel.add(userNews);
	scrollUserNewsSavedPanel.setSize("100%", "100%");

	stackPanel.add(scrollSearchSavedPanel, Util.createHeaderHTML("img/icon/stackpanel/find.gif", Main.i18n("leftpanel.label.stored.search")), true, 22);
	stackPanel.add(scrollUserNewsSavedPanel, Util.createHeaderHTML("img/icon/news.gif", Main.i18n("leftpanel.label.user.search")), true, 22);

	stackPanel.showWidget(0);
	stackPanel.setStyleName("okm-StackPanel");
	stackPanel.addStyleName("okm-DisableSelect");
	initWidget(stackPanel);
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:27,代码来源:HistorySearch.java

示例3: layoutViews

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);
}
 
开发者ID:Novartis,项目名称:ontobrowser,代码行数:33,代码来源:OntoBrowser.java

示例4: FilterViewImpl

public FilterViewImpl() {
    super(Unit.PX);
    
    setHeadTitle(Utils.constants.filter());
    
    filterPanel = new VerticalPanel();
    
    filterPanel.setWidth("100%");
    featureFilter = new DemoProjectsFeatureFilter();
    filterPanel.add(featureFilter);
    featureFilter.addValueChangeHandler(this);
    
    sdkLanguageFilter = new DemoProjectsSdkLanguageFilter();
    filterPanel.add(sdkLanguageFilter);
    sdkLanguageFilter.addValueChangeHandler(this);
    
    platformFilter = new DemoProjectsPlatformFilter();
    filterPanel.add(platformFilter);
    platformFilter.addValueChangeHandler(this);
    
    complexityFilter = new DemoProjectsComplexityFilter();
    filterPanel.add(complexityFilter);
    complexityFilter.addValueChangeHandler(this);
    
    setContent(filterPanel);
    
}
 
开发者ID:kaaproject,项目名称:sandbox-frame,代码行数:27,代码来源:FilterViewImpl.java

示例5: WorkbenchSplitLayoutPanel

/**
 * Construct a new {@link SplitLayoutPanel} with the specified splitter size
 * in pixels.
 * @param splitterSize the size of the splitter in pixels
 */
public WorkbenchSplitLayoutPanel(int splitterSize) {
    super(Unit.PX);
    this.splitterSize = splitterSize;
    setStyleName(WorkbenchResources.INSTANCE.CSS().splitLayoutPanel());

    if (glassElem == null) {
        glassElem = Document.get().createDivElement();
        glassElem.getStyle().setPosition(Position.ABSOLUTE);
        glassElem.getStyle().setTop(0,
                                    Unit.PX);
        glassElem.getStyle().setLeft(0,
                                     Unit.PX);
        glassElem.getStyle().setMargin(0,
                                       Unit.PX);
        glassElem.getStyle().setPadding(0,
                                        Unit.PX);
        glassElem.getStyle().setBorderWidth(0,
                                            Unit.PX);

        // We need to set the background color or mouse events will go right
        // through the glassElem. If the SplitPanel contains an iframe, the
        // iframe will capture the event and the slider will stop moving.
        glassElem.getStyle().setProperty("background",
                                         "white");
        glassElem.getStyle().setOpacity(0.0);
    }
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:32,代码来源:WorkbenchSplitLayoutPanel.java

示例6: GWTPTabPanel

/**
 * Create a new GWTPTabPanel.
 * 
 * @param placeManager the place manager to use when processing tab
 *            selections.
 */
public GWTPTabPanel(final PlaceManager placeManager) {
    _layout = new LayoutPanel();
    _layout.addStyleName("fill-layout"); //$NON-NLS-1$

    _tabBar = new DefaultTabLayoutPanel(40, Unit.PX);
    // _tabBar = new TabBar();
    _tabBar.addSelectionHandler(new SelectionHandler<Integer>() {
        @Override
        public void onSelection(SelectionEvent<Integer> event) {
            if (_modifyingTabs) {
                // add/remove tab may change the selection
                return;
            }
            if (event.getSelectedItem() < 0) {
                // TODO: WHAT????
                return;
            }
            final PlaceRequest current = placeManager.getCurrentPlaceRequest();
            final String selectedToken = _tabs.get(event.getSelectedItem()).getTargetHistoryToken();
            final String currentToken = current == null ? null : current.getNameToken();
            if (!selectedToken.equals(currentToken)) {
                placeManager.revealPlace(new PlaceRequest(selectedToken));
            }
        }
    });

    _content = new LayoutPanel();
    _content.setStyleName("fill-layout"); //$NON-NLS-1$

    _layout.add(_tabBar);
    _layout.add(_content);

    ((LayoutPanel) _layout).setWidgetTopHeight(_tabBar, 0, Unit.PX, 40, Unit.PX);
    ((LayoutPanel) _layout).setWidgetTopHeight(_content, 40, Unit.PX, 100, Unit.PCT);
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:41,代码来源:GWTPTabPanel.java

示例7: ExtendedStackPanel

public ExtendedStackPanel() {
	super(Unit.PX);
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:3,代码来源:ExtendedStackPanel.java

示例8: ExtendedStackPanel

public ExtendedStackPanel() {
	super(Unit.PX);
	navHandlerExtensionList = new ArrayList<NavigatorHandlerExtension>();
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:4,代码来源:ExtendedStackPanel.java

示例9: ExtendedDockPanel

/**
 * 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);
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:48,代码来源:ExtendedDockPanel.java

示例10: SearchIn

/**
 * SearchIn
 */
public SearchIn() {
	futuramaWalking = new FuturamaWalking();
	hPanel = new HorizontalPanel();
	tabPanel = new TabLayoutPanel(TAB_HEIGHT, Unit.PX);
	searchSimple = new SearchSimple();
	searchNormal = new SearchNormal();
	searchAdvanced = new SearchAdvanced();
	searchMetadata = new SearchMetadata(this);
	searchControl = new SearchControl();
	status = new Status();
	status.setStyleName("okm-StatusPopup");

	// Adding keyword listeners
	searchSimple.fullText.addKeyUpHandler(searchControl.keyUpHandler);
	searchNormal.content.addKeyUpHandler(searchControl.keyUpHandler);
	searchNormal.name.addKeyUpHandler(searchControl.keyUpHandler);
	searchNormal.keywords.addKeyUpHandler(searchControl.keyUpHandler);
	searchAdvanced.from.addKeyUpHandler(searchControl.keyUpHandler);
	searchAdvanced.to.addKeyUpHandler(searchControl.keyUpHandler);
	searchAdvanced.subject.addKeyUpHandler(searchControl.keyUpHandler);

	// By default is enabled simple mode
	tabPanel.add(searchSimple, Main.i18n("search.simple"));
	tabPanel.selectTab(0);

	Image verticalLine = new Image("img/transparent_pixel.gif");
	verticalLine.setStyleName("okm-Vertical-Line-Border");
	verticalLine.setSize("2px", "100%");
	hPanel.add(tabPanel);
	hPanel.add(verticalLine);
	hPanel.add(searchControl);

	hPanel.setCellWidth(verticalLine, "2px");
	hPanel.setCellHeight(verticalLine, "100%");
	hPanel.setCellWidth(searchControl, "" + CONTROLER_WIDTH + "px");
	hPanel.setCellVerticalAlignment(tabPanel, HasAlignment.ALIGN_TOP);
	hPanel.setCellVerticalAlignment(searchControl, HasAlignment.ALIGN_TOP);

	// Gets all users
	searchNormal.getAllUsers();

	initWidget(hPanel);
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:46,代码来源:SearchIn.java

示例11: TabDocument

/**
 * The Document tab
 */
public TabDocument() {
	doc = new GWTDocument();
	propertyGroupHandlerExtensionList = new ArrayList<PropertyGroupHandlerExtension>();
	tabPanel = new TabLayoutPanel(TAB_HEIGHT, Unit.PX);
	document = new Document();
	notes = new Notes(Notes.DOCUMENT_NOTE);
	version = new VersionScrollTable();
	security = new SecurityScrollTable();
	preview = new Preview(null);
	panel = new VerticalPanel();
	propertyGroup = new ArrayList<PropertyGroup>();
	widgetExtensionList = new ArrayList<TabDocumentExtension>();
	docHandlerExtensionList = new ArrayList<DocumentHandlerExtension>();

	tabPanel.addSelectionHandler(new SelectionHandler<Integer>() {
		@Override
		public void onSelection(SelectionEvent<Integer> event) {
			final int tabIndex = event.getSelectedItem().intValue();
			Main.get().mainPanel.topPanel.toolBar.evaluateRemovePropertyGroup(isRemovePropertyGroupEnabled(tabIndex));
			selectedTab = tabIndex;

			if (tabIndex == SECURITY_TAB) {
				Timer timer = new Timer() {
					@Override
					public void run() {
						security.fillWidth(); // Always when shows fires fill width
					}
				};
				timer.schedule(500); // Fill width must be done after really it'll be visible
			}

			preview.cleanPreview(); // Always clean preview tab

			if (tabIndex == PREVIEW_TAB) {
				Timer previewTimer = new Timer() {
					@Override
					public void run() {
						previewDocument(false);
					}
				};
				previewTimer.schedule(500);
			}

			fireEvent(HasDocumentEvent.TAB_CHANGED);
		}
	});

	panel.add(tabPanel);
	tabPanel.setWidth("100%");
	document.setSize("100%", "100%");
	notes.setSize("100%", "100%");
	panel.setSize("100%", "100%");
	tabPanel.setStyleName("okm-DisableSelect");

	initWidget(panel);
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:59,代码来源:TabDocument.java

示例12: TabMail

/**
 * The Document tab
 */
public TabMail() {
	widgetExtensionList = new ArrayList<TabMailExtension>();
	mailHandlerExtensionList = new ArrayList<MailHandlerExtension>();
	propertyGroupHandlerExtensionList = new ArrayList<PropertyGroupHandlerExtension>();
	tabPanel = new TabLayoutPanel(TAB_HEIGHT, Unit.PX);
	mail = new Mail();
	notes = new Notes(Notes.MAIL_NOTE);
	mailViewer = new MailViewer();
	security = new SecurityScrollTable();
	panel = new VerticalPanel();
	propertyGroup = new ArrayList<PropertyGroup>();

	tabPanel.addSelectionHandler(new SelectionHandler<Integer>() {
		@Override
		public void onSelection(SelectionEvent<Integer> event) {
			int tabIndex = event.getSelectedItem().intValue();
			Main.get().mainPanel.topPanel.toolBar.evaluateRemovePropertyGroup(isRemovePropertyGroupEnabled(tabIndex));
			selectedTab = tabIndex;

			if (tabIndex == SECURITY_TAB) {
				Timer timer = new Timer() {
					@Override
					public void run() {
						security.fillWidth(); // Always when shows fires fill width
					}
				};
				timer.schedule(500); // Fill width must be done after really it'll be visible
			}

			fireEvent(HasMailEvent.TAB_CHANGED);
		}
	});

	panel.add(tabPanel);
	tabPanel.setWidth("100%");
	mail.setSize("100%", "100%");
	notes.setSize("100%", "100%");
	mailViewer.setSize("100%", "100%");
	panel.setSize("100%", "100%");
	tabPanel.setStyleName("okm-DisableSelect");

	initWidget(panel);
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:46,代码来源:TabMail.java

示例13: TabFolder

/**
 * TabFolder
 */
public TabFolder() {
	widgetExtensionList = new ArrayList<TabFolderExtension>();
	folderHandlerExtensionList = new ArrayList<FolderHandlerExtension>();
	propertyGroupHandlerExtensionList = new ArrayList<PropertyGroupHandlerExtension>();
	tabPanel = new TabLayoutPanel(TAB_HEIGHT, Unit.PX);
	folder = new Folder();
	security = new SecurityScrollTable();
	notes = new Notes(Notes.FOLDER_NOTE);
	panel = new VerticalPanel();
	propertyGroup = new ArrayList<PropertyGroup>();

	tabPanel.addSelectionHandler(new SelectionHandler<Integer>() {
		@Override
		public void onSelection(SelectionEvent<Integer> event) {
			int tabIndex = event.getSelectedItem().intValue();
			Main.get().mainPanel.topPanel.toolBar.evaluateRemovePropertyGroup(isRemovePropertyGroupEnabled(tabIndex));
			selectedTab = tabIndex;

			if (tabIndex == SECURITY_TAB) {
				Timer timer = new Timer() {
					@Override
					public void run() {
						security.fillWidth(); // Always when shows fires fill width
					}
				};
				timer.schedule(500); // Fill width must be done after really it'll be visible
			}

			fireEvent(HasFolderEvent.TAB_CHANGED);
		}
	});

	panel.add(tabPanel);
	tabPanel.setWidth("100%");
	folder.setSize("100%", "100%");
	notes.setSize("100%", "100%");
	panel.setSize("100%", "100%");
	tabPanel.setStyleName("okm-DisableSelect");

	initWidget(panel);
}
 
开发者ID:openkm,项目名称:document-management-system,代码行数:44,代码来源:TabFolder.java

示例14: SplitLayoutPanelFirefly

public SplitLayoutPanelFirefly() {
    super(Unit.PX);
    setStyleName("gwt-SplitLayoutPanel");

}
 
开发者ID:lsst,项目名称:firefly,代码行数:5,代码来源:SplitLayoutPanelFirefly.java

示例15: asWidget

@Override
public Widget asWidget() {

	DockLayoutPanel dockLayout = new DockLayoutPanel(Unit.PX);

	dockLayout.addNorth(headerView, 35);
	dockLayout.add(mainLayout);

	return dockLayout;
}
 
开发者ID:ICT-BDA,项目名称:EasyML,代码行数:10,代码来源:MonitorView.java


注:本文中的com.google.gwt.dom.client.Style.Unit.PX属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。