public DefaultRightResizeUIHandler(IUIPanel uiPanel) { super(uiPanel); this.setStyleName("uiPanel-right-ResizeBck"); Image tmpImg = (Image) this.getIncreaseBtn(); increaseBtn = (Image) this.getDecreaseBtn(); decreaseBtn = tmpImg; increaseBtn.setTitle("Click to increase panel height"); decreaseBtn.setTitle("Click to decrease panel height"); }
public DefaultBottomResizeUIHandler(IUIPanel uiPanel) { super(uiPanel); this.setStyleName("uiPanel-bottom-ResizeBck"); Image tmpImg = (Image) this.getIncreaseBtn(); increaseBtn = (Image) this.getDecreaseBtn(); decreaseBtn = tmpImg; increaseBtn.setTitle("Click to increase panel height"); decreaseBtn.setTitle("Click to decrease panel height"); }
@Override public HasClickHandlers getDecreaseBtn() { if (decreaseBtn==null){ this.decreaseBtn = new Image(GWT.getModuleBaseURL()+"/images/uipanel/up_decrease.png"); this.decreaseBtn.setTitle("Click to decrease panel height"); } return decreaseBtn; }
@Override public HasClickHandlers getIncreaseBtn() { if (increaseBtn==null){ this.increaseBtn = new Image(GWT.getModuleBaseURL()+"/images/uipanel/left_increase.png"); this.increaseBtn.setTitle("Click to increase panel width"); } return increaseBtn; }
private Image getPlusMinusWithStyle(final String image, final String tooltip) { final Image operatorWidget = new Image( image ); operatorWidget.setStyleName( "plusMinus" ); operatorWidget.setTitle( tooltip ); return operatorWidget; }
@Override public HasClickHandlers getIncreaseBtn() { if (increaseBtn==null){ this.increaseBtn = new Image(GWT.getModuleBaseURL()+"/images/uipanel/up_increase.png"); this.increaseBtn.setTitle("Click to increase panel height"); } return increaseBtn; }
@Override public HasClickHandlers getDecreaseBtn() { if (decreaseBtn==null){ this.decreaseBtn = new Image(GWT.getModuleBaseURL()+"/images/uipanel/left_decrease.png"); this.decreaseBtn.setTitle("Click to decrease panel width"); } return decreaseBtn; }
private void addInvalidPatternIcon() { final Image image = GuidedRuleEditorImages508.INSTANCE.Error(); image.setTitle(GuidedRuleEditorResources.CONSTANTS.InvalidPatternSectionDisabled()); this.addLineIcon(currentLayoutRow, 0, image); }
public AnnotationEditor( final AnnotationMetaModel annotation, final List<AnnotationMetaModel> annotations ) { this.annotation = annotation; this.annotations = annotations; initWidget( uiBinder.createAndBindUi( this ) ); annotationName.setStyleName( "guvnor-bold-label" ); setControlValues( annotation ); editAnnotationIcon.setTitle( Constants.INSTANCE.Rename() ); deleteAnnotationIcon.setTitle( Constants.INSTANCE.Delete() ); }
private Widget getAddAttribute() { Image add = GuidedRuleEditorImages508.INSTANCE.NewItem(); add.setTitle( Constants.INSTANCE.AddAnOptionToTheRuleToModifyItsBehaviorWhenEvaluatedOrExecuted() ); add.addClickHandler( new ClickHandler() { public void onClick( ClickEvent event ) { showAttributeSelector(); } } ); return add; }
public KscAddGraphPresenter(final PopupPanel mainPopup, final KscAddGraphView<KscReport> addGraphView, final List<KscReport> kscReports, final GraphInfo graphInfo) { m_mainPopup = mainPopup; m_view = addGraphView; m_view.setPresenter(this); m_KscReports = kscReports; m_graphInfo = graphInfo; m_addImage = new Image("images/plus.gif"); m_addImage.setAltText("Add this graph to a KSC report."); m_addImage.setTitle("Add this graph to a KSC report."); }
private void addInvalidPatternIcon() { final Image image = GuidedRuleEditorImages508.INSTANCE.Error(); image.setTitle(GuidedRuleEditorResources.CONSTANTS.InvalidPatternSectionDisabled()); this.addLineIcon(currentLayoutRow, 0, image); }
private Image createAddConnectiveImageButton( final RuleModeller modeller, final SingleFieldConstraint constraint ) { Image addConnective = GuidedRuleEditorImages508.INSTANCE.AddConnective(); addConnective.setTitle( Constants.INSTANCE.AddMoreOptionsToThisFieldsValues() ); addConnective.addClickHandler( new ClickHandler() { public void onClick( ClickEvent event ) { setModified( true ); constraint.addNewConnective(); modeller.refreshWidget(); } } ); return addConnective; }
public FactFieldEditor( final FieldMetaModel field, final List<FieldMetaModel> fields, final ModelNameHelper modelNameHelper ) { this.field = field; this.fields = fields; this.modelNameHelper = modelNameHelper; initWidget( uiBinder.createAndBindUi( this ) ); fieldName.setStyleName( "guvnor-bold-label" ); setTypeText( field.type ); fieldName.setText( field.name ); editFieldIcon.setTitle( Constants.INSTANCE.Rename() ); deleteFieldIcon.setTitle( Constants.INSTANCE.Delete() ); }
protected Image getAddButton() { final Image addbutton = GuidedRuleEditorImages508.INSTANCE.NewItem(); addbutton.setAltText( GuidedRuleEditorResources.CONSTANTS.AddMetadataToTheRule() ); addbutton.setTitle( GuidedRuleEditorResources.CONSTANTS.AddMetadataToTheRule() ); addbutton.addClickHandler( getMetadataHandler() ); return addbutton; }
/** * @param instance * @return */ private Image getStatusIcon(final EIInstanceMinimal instance) { // TODO: Maybe find a better way to do this? Properties? String statusLabel = isNull( instance.getWFState() ) ? " " : instance.getWFState().getLabel(); final Image status = WidgetUtils.getStatusIcon( instance.getWFState() ); status.setTitle(statusLabel); return status; }
protected void setEnabled(boolean enabled, String hint) { this.enabled = enabled; uploadButton.setEnabled(enabled); uploadButton.setTitle(hint); defaultButton.setEnabled(enabled); defaultButton.setTitle(hint); ensureStyleNamePresent(image, !enabled, style.iconImageDisabled()); image.setTitle(hint); }
protected Image getAddButton() { final Image addbutton = GuidedRuleEditorImages508.INSTANCE.NewItem(); addbutton.setAltText( GuidedRuleEditorResources.CONSTANTS.AddMetadataToTheRule() ); addbutton.setTitle( GuidedRuleEditorResources.CONSTANTS.AddMetadataToTheRule() ); addbutton.addClickHandler( getMetadataHandler() ); return addbutton; }
public AddConstraintButton(ClickHandler clickHandler) { imageButton.addClickHandler(clickHandler); HorizontalPanel widgets = new HorizontalPanel(); widgets.add(imageButton); error.setVisible(false); error.setTitle(GuidedRuleEditorResources.CONSTANTS.PleaseSetTheConstraintValue()); error.setAltText(GuidedRuleEditorResources.CONSTANTS.PleaseSetTheConstraintValue()); widgets.add(error); initWidget(widgets); }
public AddConstraintButton(ClickHandler clickHandler) { imageButton.addClickHandler(clickHandler); HorizontalPanel widgets = new HorizontalPanel(); widgets.add(imageButton); error.setVisible(false); error.setTitle(GuidedRuleEditorResources.CONSTANTS.PleaseSetTheConstraintValue()); error.setAltText(GuidedRuleEditorResources.CONSTANTS.PleaseSetTheConstraintValue()); widgets.add(error); initWidget(widgets); }