private static void setupDefaultStyle(){ listPanel.addStyleName("KS-Blocking-Task-List"); mainPanel.addStyleName("KS-Blocking-Task-Main"); mainPanel.addStyleName("KS-Mouse-Normal"); } }
private void setStyles() { content.addStyleName("sideBar"); content.addStyleName("KS-Program-History-Sidebar"); historyLabel.addStyleName("history"); }
private void setupDefaultStyles(){ mainPanel.addStyleName("KS-Button-Column-MainPanel"); topPanel.addStyleName("KS-Button-Column-TopPanel"); bottomPanel.addStyleName( "KS-Button-Column-BottomPanel"); contentPanel.addStyleName("KS-Button-Column-ContentPanel"); }
public KSBasicMenuImpl(){ menuTitlePanel.add(menuTitle); menuTitlePanel.add(menuDescription); menuContainer.add(menuTitlePanel); menuContainer.add(menuPanel); menuContainer.addStyleName("KS-Basic-Menu-Parent-Container"); menuTitlePanel.addStyleName("KS-Basic-Menu-Title-Panel"); menuPanel.addStyleName("KS-Basic-Menu-Panel"); menuTitle.addStyleName("KS-Basic-Menu-Title-Label"); menuTitle.addStyleName("KS-Indent" + "-1"); menuDescription.addStyleName("KS-Basic-Menu-Desc-Label"); menuDescription.addStyleName("KS-Indent" + "-1"); this.initWidget(menuContainer); }
public DSLSentenceWidget(RuleModeller modeller, EventBus eventBus, DSLSentence sentence, Boolean readOnly) { super(modeller, eventBus); widgets = new ArrayList<Widget>(); dropDownWidgets = new ArrayList<DSLDropDown>(); this.sentence = sentence; if (readOnly == null) { this.readOnly = false; } else { this.readOnly = readOnly; } this.layout = new VerticalPanel(); this.currentRow = new HorizontalPanel(); this.layout.add(currentRow); this.layout.setCellWidth(currentRow, "100%"); this.layout.setWidth("100%"); if (this.readOnly) { this.layout.addStyleName("editor-disabled-widget"); } init(); }
public DSLSentenceWidget( RuleModeller modeller, EventBus eventBus, DSLSentence sentence, Boolean readOnly ) { super( modeller, eventBus ); widgets = new ArrayList<Widget>(); dropDownWidgets = new ArrayList<DSLDropDown>(); this.sentence = sentence; if ( readOnly == null ) { this.readOnly = false; } else { this.readOnly = readOnly; } this.layout = new VerticalPanel(); this.currentRow = new HorizontalPanel(); this.layout.add( currentRow ); this.layout.setCellWidth( currentRow, "100%" ); this.layout.setWidth( "100%" ); if ( this.readOnly ) { this.layout.addStyleName( "editor-disabled-widget" ); } init(); }
public DSLSentenceWidget(RuleModeller modeller, EventBus eventBus, DSLSentence sentence, Boolean readOnly) { super(modeller, eventBus); widgets = new ArrayList<Widget>(); dropDownWidgets = new ArrayList<DSLDropDown>(); this.sentence = sentence; if (readOnly == null) { this.readOnly = false; } else { this.readOnly = readOnly; } this.layout = new VerticalPanel(); this.currentRow = new HorizontalPanel(); this.layout.add(currentRow); this.layout.setCellWidth(currentRow, "100%"); this.layout.setWidth("100%"); if (this.readOnly) { this.layout.addStyleName("editor-disabled-widget"); } init(); }
private VerticalPanel createDrow(final int hour) { final VerticalPanel drow = new VerticalPanel(); drow.setSpacing(2); drow.addStyleName(renderer.getStyle(JrsGxtDateCss.HOUR)); for (int i = 0; i < (showIntervalTimes ? intervalsPerHour : 1); i++) { drow.add(new Label(Dates.printTime(hour, i * intervalMinutes))); } return drow; }
public KSListMenuImpl(){ menuTitlePanel.add(menuTitle); menuTitlePanel.add(menuDescription); menuTitlePanel.setVisible(false); menuPanel.add(menuTitlePanel); menuTitlePanel.addStyleName("KS-Basic-Menu-Title-Panel"); menuPanel.addStyleName( "KS-Basic-Menu-Panel"); menuTitle.addStyleName("KS-Basic-Menu-Title-Label"); menuTitle.addStyleName("KS-Indent" + "-1"); menuDescription.addStyleName("KS-Basic-Menu-Desc-Label"); menuDescription.addStyleName("KS-Indent" + "-1"); this.initWidget(menuPanel); }
private void createLayout(){ top.add(titleLabel); rightContent.add(statusLabel); rightContent.add(linkLabel); rightContent.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT); rightContent.setCellHorizontalAlignment(linkLabel, HasHorizontalAlignment.ALIGN_RIGHT); rightContent.setCellHorizontalAlignment(statusLabel, HasHorizontalAlignment.ALIGN_RIGHT); top.add(rightContent); layout.add(top); layout.add(toolbar); layout.add(messagePanel); layout.add(content); linkLabel.addStyleName("KS-TitleContainer-Link"); statusLabel.addStyleName("KS-TitleContainer-Status"); titleLabel.addStyleName("KS-TitleContainer-Title"); top.addStyleName("KS-TitleContainer-Top-Row"); toolbar.addStyleName("KS-TitleContainer-Toolbar"); messagePanel.addStyleName("KS-TitleContainer-Messages"); rightContent.addStyleName("KS-TitleContainer-Right-Panel"); layout.addStyleName("KS-TitleContainer-Layout"); parentContainer.addStyleName("KS-Drop-Shadow"); parentContainer.addStyleName("KS-TitleContainer"); parentContainer.setWidget(layout); this.initWidget(parentContainer); }
verticalPanel.addStyleName(GuidedRuleEditorResources.INSTANCE.css().multiConstraintMatch());
viewPanel.addStyleName("form-view-panel"); editPanel.addStyleName("form-edit-panel");
listPanel.addStyleName("multilist-list");
private void initView() { WindowClientBundle.Style style = clientBundle.getStyle(); windowFrame = new VerticalPanel(); windowFrame.addStyleName(style.windowFrame()); windowFrameTitleBar = new HorizontalPanel(); windowFrameTitleBar.addStyleName(style.windowFrameTitleBar()); windowFrameHeaderTitle = new Label(); windowFrameHeaderTitle.addStyleName(style.windowFrameTitle()); windowFrameCloseButton = new SVGImage(clientBundle.closeIcon()); windowFrameCloseButton.addClassNameBaseVal(style.windowFrameCloseButton()); windowFrameBody = new FlowPanel(); windowFrameBody.addStyleName(style.windowFrameBody()); windowFrameButtonBar = new FlowPanel(); windowFrameButtonBar.addStyleName(style.windowFrameButtonBar()); windowFrameButtonBar.setVisible(false); windowFrameTitleBar.add(windowFrameHeaderTitle); windowFrameTitleBar.add(windowFrameCloseButton); windowFrame.add(windowFrameTitleBar); windowFrame.add(windowFrameBody); windowFrame.add(windowFrameButtonBar); initWidget(windowFrame); }
dialogVPanel.addStyleName("dialogVPanel"); dialogVPanel.add(new HTML("<b>" + title + "</b>")); dialogVPanel.add(new HTML("<br><b>" + message + "</b><br><br>"));
root.add(main); main.addStyleName("KS-LOCategoryPicker"); addButton.addStyleName("KS-LOCategoryPicker-Button");
public MultiConstraintHardMediumSoftMatchRuleModellerWidget(final RuleModeller mod, final EventBus eventBus, final ActionMultiConstraintHardMediumSoftMatch actionConstraintMatch, final TranslationService translationService, final Boolean readOnly) { super(mod, eventBus, translationService); hardConstraintMatchInputWidget = new ConstraintMatchInputWidget(actionConstraintMatch.getActionHardConstraintMatch()); hardConstraintMatchInputWidget .addConstraintMatchValueChangeHandler(new ConstraintMatchValueChangeHandler(actionConstraintMatch.getActionHardConstraintMatch())); mediumConstraintMatchInputWidget = new ConstraintMatchInputWidget(actionConstraintMatch.getActionMediumConstraintMatch()); mediumConstraintMatchInputWidget .addConstraintMatchValueChangeHandler(new ConstraintMatchValueChangeHandler(actionConstraintMatch.getActionMediumConstraintMatch())); softConstraintMatchInputWidget = new ConstraintMatchInputWidget(actionConstraintMatch.getActionSoftConstraintMatch()); softConstraintMatchInputWidget .addConstraintMatchValueChangeHandler(new ConstraintMatchValueChangeHandler(actionConstraintMatch.getActionSoftConstraintMatch())); VerticalPanel verticalPanel = new VerticalPanel(); HorizontalPanel labelPanel = createLabelPanel(translationService.getTranslation(GuidedRuleEditorConstants.RuleModellerActionPlugin_MultiConstraintMatch)); verticalPanel.add(labelPanel); verticalPanel.add(getItemPanel(translationService.getTranslation(GuidedRuleEditorConstants.RuleModellerActionPlugin_HardScore), hardConstraintMatchInputWidget)); verticalPanel.add(getItemPanel(translationService.getTranslation(GuidedRuleEditorConstants.RuleModellerActionPlugin_MediumScore), mediumConstraintMatchInputWidget)); verticalPanel.add(getItemPanel(translationService.getTranslation(GuidedRuleEditorConstants.RuleModellerActionPlugin_SoftScore), softConstraintMatchInputWidget)); verticalPanel.addStyleName(GuidedRuleEditorResources.INSTANCE.css().multiConstraintMatch()); initWidget(verticalPanel); }
panel.addStyleName("KS-Error-Dialog");
layout.addStyleName("ks-form-module-fields");