/** * if this is set (!=null) this event is rendered as anchor. If it is null, * the anchor in the AnchorRenderStack is rendered */ public final void setEvent(String event, LowLevelEventListener requestTarget) { setEvent(event); setEventTarget(requestTarget); }
/** * Intializes the buttons with default icons, tooltip text and listener. */ protected void initButtons() { ok.setEvent("ok"); ok.setIcon(OK_BUTTON_ICON); ok.setToolTipText("ok"); ok.setEventTarget(editorPanel); cancel.setEvent("cancel"); cancel.setIcon(CANCEL_BUTTON_ICON); cancel.setToolTipText("cancel"); cancel.setEventTarget(editorPanel); editorPanel.add(ok); editorPanel.add(cancel); }
/** * Creates a scrollbar with the specified orientation, * value, extent, mimimum, and maximum. * The "extent" is the size of the viewable area. It is also known * as the "visible amount". * * @throws IllegalArgumentException if orientation is not one of VERTICAL, HORIZONTAL * @see #setOrientation * @see #setValue * @see #setVisibleAmount * @see #setMinimum * @see #setMaximum */ public SPageScroller(int orientation, int value, int extent, int min, int max) { super(new SPagingBoundedRangeModel(value, extent, min, max)); unitIncrement = extent; blockIncrement = extent; for (int i = 0; i < clickables.length; i++) { clickables[i] = new SClickable(); clickables[i].setEventTarget(this); } setOrientation(orientation); setMarginVisible(false); setHorizontalAlignment(SConstants.CENTER); setVerticalAlignment(SConstants.CENTER); setEpochCheckEnabled(false); }