name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_Flash_setParameter_rdh | /**
* Sets an object parameter. Parameters are optional information, and they
* are passed to the instantiated object. Parameters are are stored as name
* value pairs. This overrides the previous value assigned to this
* parameter.
*
* @param name
*... | 3.26 |
framework_Flash_setCodetype_rdh | /**
* This attribute specifies the content type of data expected when
* downloading the object specified by classid. This attribute is optional
* but recommended when classid is specified since it allows the user agent
* to avoid loading information for unsupported content types. When absent,
* it defaults to the ... | 3.26 |
framework_ProgressIndicator_getPollingInterval_rdh | /**
* Gets the interval that component checks for progress.
*
* @return the interval in milliseconds.
*/
public int getPollingInterval() {
return getState(false).pollingInterval;
} | 3.26 |
framework_ProgressIndicator_setPollingInterval_rdh | /**
* Sets the interval that component checks for progress.
*
* @param pollingInterval
* the interval in milliseconds.
*/ public void setPollingInterval(int pollingInterval) {
m0().pollingInterval = pollingInterval;
} | 3.26 |
framework_SerializerHelper_writeClass_rdh | /**
* Serializes the class reference so {@link #readClass(ObjectInputStream)}
* can deserialize it. Supports null class references.
*
* @param out
* The {@link ObjectOutputStream} to serialize to.
* @param cls
* A class or null.
* @throws IOException
* Rethrows any IOExceptions from the ObjectOutputStrea... | 3.26 |
framework_SerializerHelper_readClassArray_rdh | /**
* Deserializes a class references serialized by
* {@link #writeClassArray(ObjectOutputStream, Class[])}. Supports null
* class arrays.
*
* @param in
* {@link ObjectInputStream} to read from.
* @return Class array with the class references or null.
* @throws ClassNotFoun... | 3.26 |
framework_SerializerHelper_readClass_rdh | /**
* Deserializes a class reference serialized by
* {@link #writeClass(ObjectOutputStream, Class)}. Supports null class
* references.
*
* @param in
* {@code ObjectInputStream} to read from.
* @return Class reference to the resolved class
* @throws ClassNotFoundException
* If the class could not be resolve... | 3.26 |
framework_SerializerHelper_resolveClass_rdh | /**
* Resolves the class given by {@code className}.
*
* @param className
* The fully qualified class name.
* @return A {@code Class} reference.
* @throws ClassNotFoundException
* If the class could not be resolved.
*/
public static Class<?> resolveClass(String className) throws ClassNotFoundException {... | 3.26 |
framework_SerializerHelper_writeClassArray_rdh | /**
* Serializes the class references so
* {@link #readClassArray(ObjectInputStream)} can deserialize it. Supports
* null class arrays.
*
* @param out
* The {@link ObjectOutputStream} to serialize to.
* @param classes
* An array containing class references or null.
* @throws IOException
* Rethrows any I... | 3.26 |
framework_TreeFilesystem_nodeExpand_rdh | /**
* Handle tree expand event, populate expanded node's childs with new files
* and directories.
*/
@Override
public void nodeExpand(ExpandEvent event) {
final Item i = tree.getItem(event.getItemId());
if (!tree.hasChildren(i)) {
// populate tree's node which was expanded... | 3.26 |
framework_TreeFilesystem_populateNode_rdh | /**
* Populates files to tree as items. In this example items are of String
* type that consist of file path. New items are added to tree and item's
* parent and children properties are updated.
*
* @param file
* path which contents are added to tree
* @param parent
* for added nodes, if null then new nodes... | 3.26 |
framework_DateTimeField_setTextFieldEnabled_rdh | /**
* Enables or disables the text field. By default the text field is enabled.
* Disabling it causes only the button for date selection to be active, thus
* preventing the user from entering invalid dates.
*
* See <a href="http://dev.vaadin.com/ticket/6790">issue 6790</a>.
*
* @param state
* <b>true</b> to e... | 3.26 |
framework_DateTimeField_setPlaceholder_rdh | /**
* Sets the placeholder text. The placeholder is text that is displayed when
* the field would otherwise be empty, to prompt the user for input.
*
* @param placeholder
* the placeholder text to set
*/
public void setPlaceholder(String placeholder) {
getState().placeholder = placeholder;
} | 3.26 |
framework_DateTimeField_setAssistiveText_rdh | /**
* Set a description that explains the usage of the Widget for users of
* assistive devices.
*
* @param description
* String with the description
*/
public void setAssistiveText(String description) {
getState().descriptionForAssistiveDevices
= description;
} | 3.26 |
framework_DateTimeField_getAssistiveText_rdh | /**
* Get the description that explains the usage of the Widget for users of
* assistive devices.
*
* @return String with the description
*/
public String getAssistiveText() {return getState(false).descriptionForAssistiveDevices;
} | 3.26 |
framework_DateTimeField_isTextFieldEnabled_rdh | /**
* Checks whether the text field is enabled (default) or not.
*
* @see #setTextFieldEnabled(boolean)
* @return <b>true</b> if the text field is enabled, <b>false</b> otherwise.
*/
public boolean isTextFieldEnabled() {
return getState(false).textFieldEnabled;
} | 3.26 |
framework_AbstractJavaScriptComponent_addFunction_rdh | /**
* Register a {@link JavaScriptFunction} that can be called from the
* JavaScript using the provided name. A JavaScript function with the
* provided name will be added to the connector wrapper object (initially
* available as <code>this</code>). Calling that JavaScript function will
* cause the call method in t... | 3.26 |
framework_AbstractJavaScriptComponent_callFunction_rdh | /**
* Invoke a named function that the connector JavaScript has added to the
* JavaScript connector wrapper object. The arguments can be any boxed
* primitive type, String, {@link JsonValue} or arrays of any other
* supported type. Complex types (e.g. List, Set, Map, Connector or any
* JavaBean type) must be expli... | 3.26 |
framework_VMenuBar_removeItem_rdh | /**
* Remove the given item from this menu.
*
* @param item
*/
public void removeItem(CustomMenuItem item) {
if (items.contains(item)) {
int index = items.indexOf(item);
remove(item);
items.remove(index);
}
} | 3.26 |
framework_VMenuBar_isNavigationSelectKey_rdh | /**
* Checks whether key code selects a menu item. By default it is the Enter
* and Space keys but by overriding this you can change the keys to whatever
* you want.
*
* @since 7.2
* @param keycode
* @return true if key selects menu item
*/
protected boolean isNavigationSelectKey(int keycode) {
return (keyc... | 3.26 |
framework_VMenuBar_buildItemHTML_rdh | /**
* Build the HTML content for a menu item.
* <p>
* For internal use only. May be removed or replaced in the future.
*/
public String buildItemHTML(UIDL item) {
return m0(item.hasAttribute("separator"), item.getChildCount() > 0, item.getStringAttribute("icon"), item.getStringAttribute("text"));
} | 3.26 |
framework_VMenuBar_showChildMenu_rdh | /**
* Shows the child menu of an item. The caller must ensure that the item has
* a submenu.
*
* @param item
*/
public void showChildMenu(CustomMenuItem item) {
int left = 0;
int top = 0;
if (subMenu) {
left = item.m3().getAbsoluteLeft() + item.m3().getOffsetWidth();
top = item.getAbs... | 3.26 |
framework_VMenuBar_getItems_rdh | /* Widget methods */
/**
* Returns a list of items in this menu.
*/
public List<CustomMenuItem> getItems() {
return items;} | 3.26 |
framework_VMenuBar_setSubMenu_rdh | /* setters and getters for the fields */
public void setSubMenu(VMenuBar subMenu) {
this.subMenu = subMenu;
if (subMenu != null) {
getElement().setAttribute("aria-haspopup", "true");
} else {
getElement().setAttribute("aria-haspopup", "false");
}
} | 3.26 |
framework_VMenuBar_getSelected_rdh | /**
* Returns the currently selected item of this menu, or null if nothing is
* selected.
*
* @return */
public CustomMenuItem getSelected() {
return selected;
} | 3.26 |
framework_VMenuBar_hideChildren_rdh | /**
* Recursively hide all child menus.
*
* @param animateIn
* enable/disable animate-in animation when hide popup
* @param animateOut
* enable/disable animate-out animation when hide popup
* @since 7.3.7
*/
public void hideChildren(boolean animateIn, boolean animateOut) {
if (visibleChildMenu
!= nu... | 3.26 |
framework_VMenuBar_itemClick_rdh | /**
* When an item is clicked.
*
* @param item
*/
public void itemClick(CustomMenuItem item) {
boolean triggered =
triggerEventIfNeeded(item);
if ((item.getCommand() != null) || triggered) {
try {
if (item.getCommand() != null) {
item.getCommand().execute();
... | 3.26 |
framework_VMenuBar_onShow_rdh | /**
* When the menu is shown.
*/
public void onShow() {
// remove possible previous selection
if (selected != null) {
selected.setSelected(false);
selected = null;
}
menuVisible = true;
} | 3.26 |
framework_VMenuBar_getParentMenu_rdh | /**
* Returns the parent menu of this menu, or null if this is the top-level
* menu.
*
* @return */
public VMenuBar getParentMenu() {
return parentMenu;
} | 3.26 |
framework_VMenuBar_getNavigationSelectKey_rdh | /**
* Get the key that selects a menu item. By default it is the Enter key but
* by overriding this you can change the key to whatever you want.
*
* @deprecated use {@link #isNavigationSelectKey(int)} instead
* @return */
@Deprecated
protected int ge... | 3.26 |
framework_VMenuBar_getMenuItemWithElement_rdh | /**
* Get menu item with given DOM element.
*
* @param element
* Element used in search
* @return Menu item or null if not found
* @since 7.2
*/
public CustomMenuItem getMenuItemWithElement(Element element) {
return getMenuItemWithElement(DOM.asOld(element));
} | 3.26 |
framework_VMenuBar_itemOver_rdh | /**
* When the user hovers the mouse over the item.
*
* @param item
*/
public void itemOver(CustomMenuItem item) {
if (((openRootOnHover || subMenu) || menuVisible) && (!item.isSeparator())) {
setSelected(item);
if (((!subMenu) && openRootOnHover) && (!menuVisible)) {
menuVisible =... | 3.26 |
framework_VMenuBar_onClose_rdh | /**
* Listener method, fired when this menu is closed.
*/
@Override
public void onClose(CloseEvent<PopupPanel> event) {close(event, true);} | 3.26 |
framework_VMenuBar_handleNavigation_rdh | /**
* Handles the keyboard events handled by the MenuBar.
*
* @param keycode
* The key code received
* @param ctrl
* Whether {@code CTRL} was pressed
* @param shift
* Whether {@code SHIFT} was pressed
* @return true if the navigation event was handled
*/public boolean handleNavigation(int keycode, boole... | 3.26 |
framework_VMenuBar_onMenuClick_rdh | /**
* This is called by the items in the menu and it communicates the
* information to the server.
*
* @param clickedItemId
* id of the item that was clicked
*/
public void onMenuClick(int clickedItemId) {
// Updating the state to the server can not be done before
// the server connection is known, i.e.... | 3.26 |
framework_VMenuBar_addItem_rdh | /**
* Add a new item to this menu.
*
* @param item
*/
public void addItem(CustomMenuItem item) {
if (items.contains(item)) {return;
}
add(item);
item.setParentMenu(this);
item.setSelected(false);
items.add(item);
} | 3.26 |
framework_VMenuBar_getCloseMenuKey_rdh | /**
* Get the key that closes the menu. By default it is the escape key but by
* overriding this yoy can change the key to whatever you want.
*
* @return */
protected int getCloseMenuKey() {
return KeyCodes.KEY_ESCAPE;
} | 3.26 |
framework_VMenuBar_setSelected_rdh | /**
* Set the currently selected item of this menu.
*
* @param item
*/
public void setSelected(CustomMenuItem item) {
// If we had something selected, unselect
... | 3.26 |
framework_VMenuBar_itemOut_rdh | /**
* When the mouse is moved away from an item.
*
* @param item
*/
public void itemOut(CustomMenuItem item) {if (visibleChildMenu != item.getSubMenu()) {
hideChildMenu(item);
setSelected(null);
} else if (visibleChildMenu == null) {
setSelected(null);
}
} | 3.26 |
framework_VMenuBar_setParentMenu_rdh | /**
* Set the parent menu of this menu.
*
* @param parent
*/
public void setParentMenu(VMenuBar parent) {
parentMenu = parent;} | 3.26 |
framework_VMenuBar_clearItems_rdh | /**
* Remove all the items in this menu.
*/
public void clearItems() {
for (CustomMenuItem child : items) {
remove(child);
}
items.clear();
} | 3.26 |
framework_VMenuBar_iLayout_rdh | /**
*
* @author Jouni Koivuviita / Vaadin Ltd.
*/
public void iLayout() {
m4(false);
updateSize();
} | 3.26 |
framework_VMenuBar_m0_rdh | /**
* Build the HTML content for a menu item.
* <p>
* For internal use only. May be removed or replaced in the future.
*
* @param separator
* the menu item is separator
* @param subMenu
* the menu item contains submenu
* @param iconUrl
* the menu item icon URL or {@code null}
* @param text
* the men... | 3.26 |
framework_VMenuBar_hideChildMenu_rdh | /**
* Hides the submenu of an item.
*
* @param item
*/ public void hideChildMenu(CustomMenuItem item) {
if ((visibleChildMenu != null) && (visibleChildMenu != item.getSubMenu())) {
popup.hide();
}
} | 3.26 |
framework_AbstractSplitPanelElement_getContainedComponent_rdh | /**
* Gets a component of a split panel and wraps it in the given class.
*
* @param clazz
* Components element class
* @param byContainer
* A locator that specifies the container (first or second) whose
* component is looked for
* @return A component wrapped in the given class
*/
private <T extends Abstr... | 3.26 |
framework_AbstractSplitPanelElement_getSecondComponent_rdh | /**
* Gets the second component of a split panel and wraps it in given class.
*
* @param clazz
* Components element class
* @return Second component wrapped in given class
*/
public <T extends AbstractElement> T getSecondComponent(Class<T> clazz) { return getContainedComponent(clazz, bySecondContainer);
} | 3.26 |
framework_AbstractSplitPanelElement_getFirstComponent_rdh | /**
* Gets the first component of a split panel and wraps it in given class.
*
* @param clazz
* Components element class
* @return First component wrapped in given class
*/
public <T extends AbstractElement>
T getFirstComponent(Class<T>
clazz) {
return
getContainedComponent(clazz, byFirstContainer);
} | 3.26 |
framework_HorizontalLayout_addComponentsAndExpand_rdh | /**
* Adds the given components to this layout and sets them as expanded. The
* width of all added child components are set to 100% so that the expansion
* will be effective. The width of this layout is also set to 100% if it is
* currently undefined.
* <p>
* The components are added in the provided order to the ... | 3.26 |
framework_TimeZoneUtil_toJSON_rdh | /**
* Returns a JSON string of the specified {@code zoneId} and {@link Locale},
* which is used in
* {@link com.google.gwt.i18n.client.TimeZone#createTimeZone(String)}.
*
* This method calculates the JSON string from {@code startYear} until
* {@code startYear}, both inclusive.
*
* @param zoneId
* the {@link ... | 3.26 |
framework_AnimationUtil_setAnimationDuration_rdh | /**
* For internal use only. May be removed or replaced in the future.
*
* Set the animation-duration CSS property.
*
* @param elem
* the element whose animation-duration to set
* @param duration
* the duration as a valid CSS value
*/
public static void setAnimationDuration(Element elem, String duration) ... | 3.26 |
framework_AnimationUtil_setAnimationDelay_rdh | /**
* For internal use only. May be removed or replaced in the future.
*
* Set the animation-delay CSS property.
*
* @param elem
* the element whose animation-delay to set
* @param delay
* the delay as a valid CSS value
*/
public static void setAnimationDelay(Element elem, String
delay) {
Style style =... | 3.26 |
framework_WeekGrid_getCalendar_rdh | /**
*
* @return the calendar
*/
public VCalendar getCalendar() {
return calendar;
} | 3.26 |
framework_WeekGrid_getDateCellWidths_rdh | /**
*
* @return an int-array containing the widths of the cells (days)
*/
public int[] getDateCellWidths() {
return cellWidths;
} | 3.26 |
framework_WeekGrid_getDateCellWidth_rdh | /**
* Get width of the single date cell.
*
* @return Date cell width
*/
public int getDateCellWidth() {
int count =
content.getWidgetCount() - 1;
int cellWidth = -1;
if (count <= 0) {
return cellWidth;
}
if (width == (-1)) {
Widget firstWidget
= content.getWidget(1);... | 3.26 |
framework_WeekGrid_getDateCellCount_rdh | /**
*
* @return the number of day cells in this week
*/
public int getDateCellCount() {return content.getWidgetCount() - 1;
} | 3.26 |
framework_WeekGrid_hasToday_rdh | /**
*
* @return true if this weekgrid contains a date that is today
*/
public boolean hasToday() {
return dateCellOfToday != null;
} | 3.26 |
framework_WeekGrid_setCalendar_rdh | /**
*
* @param calendar
* the calendar to set
*/
public void setCalendar(VCalendar calendar) {
this.calendar = calendar;
} | 3.26 |
framework_WeekGrid_getDateSlotBorder_rdh | /**
*
* @return get the slot border in pixels
*/
public int getDateSlotBorder() {
return ((DateCell) (content.getWidget(1))).getSlotBorder();
} | 3.26 |
framework_Alignment_isLeft_rdh | /**
* Checks if component is aligned to the left of the available space.
*
* @return true if aligned left
*/
public boolean isLeft() {
return (bitMask
& Bits.ALIGNMENT_LEFT) == Bits.ALIGNMENT_LEFT;
} | 3.26 |
framework_Alignment_isCenter_rdh | /**
* Checks if component is aligned center (horizontally) of the available
* space.
*
* @return true if aligned center
*/
public boolean isCenter() {
return (bitMask & Bits.ALIGNMENT_HORIZONTAL_CENTER) == Bits.ALIGNMENT_HORIZONTAL_CENTER;} | 3.26 |
framework_Alignment_getBitMask_rdh | /**
* Returns a bitmask representation of the alignment value. Used internally
* by terminal.
*
* @return the bitmask representation of the alignment value
*/
public int getBitMask() {
return bitMask;
} | 3.26 |
framework_Alignment_getVerticalAlignment_rdh | /**
* Returns string representation of vertical alignment.
*
* @return vertical alignment as CSS value
*/public String getVerticalAlignment() {
if
(isBottom()) {
return "bottom";
} else if (isMiddle()) {
return "middle";
}
return "top";
} | 3.26 |
framework_Alignment_isRight_rdh | /**
* Checks if component is aligned to the right of the available space.
*
* @return true if aligned right
*/
public boolean isRight() {
return (bitMask &
Bits.ALIGNMENT_RIGHT) == Bits.ALIGNMENT_RIGHT;
} | 3.26 |
framework_Alignment_isMiddle_rdh | /**
* Checks if component is aligned middle (vertically center) of the
* available space.
*
* @return true if aligned bottom
*/
public boolean isMiddle() {
return (bitMask & Bits.ALIGNMENT_VERTICAL_CENTER) == Bits.ALIGNMENT_VERTICAL_CENTER;
} | 3.26 |
framework_Alignment_isTop_rdh | /**
* Checks if component is aligned to the top of the available space.
*
* @return true if aligned top
*/
public boolean isTop() {
return (bitMask & Bits.ALIGNMENT_TOP) == Bits.ALIGNMENT_TOP;
} | 3.26 |
framework_StatementHelper_handleUnrecognizedTypeNullValue_rdh | /**
* Handle unrecognized null values. Override this to handle null values for
* platform specific data types that are not handled by the default
* implementation of the {@link StatementHelper}.
*
* @param i
* @param pstmt
* @param dataTypes2
* @return true if handled, false otherwise
* @see {@link http://dev.... | 3.26 |
framework_VSlider_propertyNotNullOrEmpty_rdh | // Style has non empty property
private boolean propertyNotNullOrEmpty(final String styleAttribute, final Element p) {
return (p.getStyle().getProperty(styleAttribute) != null) && (!p.getStyle().getProperty(styleAttribute).isEmpty());
} | 3.26 |
framework_VSlider_setId_rdh | /**
* Sets the id of this component's connector.
*
* @param id
* the connector id
* @deprecated the updated field is no longer used by the framework
*/
@Deprecated
public void setId(String id) {
this.id = id;
} | 3.26 |
framework_VSlider_setReadOnly_rdh | /**
* Sets the read-only status of this slider. Users cannot interact with a
* read-only widget, but the default styles don't show it grayed out unless
* it's also disabled. The slider is not read-only by default.
*
* @param readonly
* a boolean value specifying whether the slider should be in
* read-only mo... | 3.26 |
framework_VSlider_setMaxValue_rdh | /**
* Sets the maximum value for slider.
*
* @param value
* the maximum value to use
*/
public void setMaxValue(double value) {
max = value;
} | 3.26 |
framework_VSlider_getEventPosition_rdh | /**
* TODO consider extracting touches support to an impl class specific for
* webkit (only browser that really supports touches).
*
* @param event
* the event whose position to check
* @return the client position
*/
protected int getEventPosition(Event event) {
if (isVertical()) {
return WidgetUti... | 3.26 |
framework_VSlider_setDisabled_rdh | /**
* Disables or enables this slider. Users cannot interact with a disabled
* widget, and the default styles show it as grayed out (via opacity). The
* slider is enabled by default.
*
* @param disabled
* a boolean value specifying whether the slider should be
* disabled or not
* @see #setReadOnly(boolean)
... | 3.26 |
framework_VSlider_setMinValue_rdh | /**
* Sets the minimum value for slider.
*
* @param value
* the minimum value to use
*/
public void setMinValue(double value) {
min = value;
} | 3.26 |
framework_VSlider_setOrientation_rdh | /**
* Sets the slider orientation. Updates the style names if the given
* orientation differs from previously set orientation.
*
* @param orientation
* the orientation to use
*/
public void setOrientation(SliderOrientation orientation) {
if (this.orientation != orientation) {
this.orientation = orie... | 3.26 |
framework_VSlider_updateStyleNames_rdh | /**
* Updates the style names for this widget and the child elements.
*
* @param styleName
* the new style name
* @param isPrimaryStyleName
* {@code true} if the new style name is primary, {@code false}
* otherwise
*/
protected void updateStyleNames(String styleName, boolean isPrimaryStyleName) { feedback... | 3.26 |
framework_VSlider_setResolution_rdh | /**
* Sets the resolution (precision level) for slider as the number of
* fractional digits that are considered significant. Determines how big
* change is used when increasing or decreasing the value, and where more
* precise values get rounded.
*
* @param resolution
* the number of digits after the decimal p... | 3.26 |
framework_VSlider_setUpdateValueOnClick_rdh | /**
* Specifies whether or not click event should update the Slider's value.
*
* @param updateValueOnClick
* {@code true} if a click should update slider's value,
* {@code false} otherwise
*/
public void
setUpdateValueOnClick(boolean updateValueOnClick) {
this.updateValueOnClick = updateValueOnClick;
} | 3.26 |
framework_VSlider_buildBase_rdh | /**
* For internal use only. May be removed or replaced in the future.
*/
public void buildBase() {
final String styleAttribute = (isVertical()) ? "height" : "width"; final String oppositeStyleAttribute = (isVertical()) ? "width" : "height";
final String domProperty = (isVertical()) ? "offsetHeight" : "of... | 3.26 |
framework_VSlider_m0_rdh | /**
* Updates the value shown in the feedback pop-up when the slider is moved.
* The value should match the current value of this widget.
*
* @param value
* the new value to show
*/
public void m0(double
value) {
feedback.setText(String.valueOf(value));
} | 3.26 |
framework_VSlider_handleNavigation_rdh | /**
* Handles the keyboard events handled by the Slider.
*
* @param keycode
* The key code received
* @param ctrl
* Whether {@code CTRL} was pressed
* @param shift
* Whether {@code SHIFT} was pressed
* @return true if the navigation event was handled
*/
public boolean handleNavigation(int keycode, bool... | 3.26 |
framework_VSlider_getNavigationLeftKey_rdh | /**
* Get the key that decreases the horizontal slider. By default it is the
* left arrow key but by overriding this you can change the key to whatever
* you want.
*
* @return The keycode of the key
*/
protected int getNavigationLeftKey() {
return KeyCodes.KEY_LEFT;
} | 3.26 |
framework_VSlider_getNavigationDownKey_rdh | /**
* Get the key that decreases the vertical slider. By default it is the down
* arrow key but by overriding this you can change the key to whatever you
* want.
*
* @return The keycode of the key
*/
protected int getNavigationDownKey() {
return KeyCodes.KEY_DOWN;
} | 3.26 |
framework_VSlider_setConnection_rdh | /**
* Sets the current client-side communication engine.
*
* @param client
* the application connection that manages this component
* @deprecated the updated field is no longer used by the framework
*/
@Deprecated
public void
setConnection(ApplicationConnection client) {
this.client = client;
} | 3.26 |
framework_VSlider_getNavigationRightKey_rdh | /**
* Get the key that increases the horizontal slider. By default it is the
* right arrow key but by overriding this you can change the key to whatever
* you want.
*
* @return The keycode of the key
*/
protected int getNavigationRightKey() {
return KeyCodes.KEY_RIGHT;} | 3.26 |
framework_Slot_setCaption_rdh | /**
* Set the caption of the slot.
*
* @param captionText
* The text of the caption
* @param icon
* The icon
* @param styles
* The style names
* @param error
* The error message
* @param errorLevel
* The error level
* @param showError
* Should the error message be shown
* @param required
* ... | 3.26 |
framework_Slot_setCaptionPosition_rdh | /**
* Set the position of the caption relative to the slot.
*
* @param captionPosition
* The position of the caption
*/
public void setCaptionPosition(CaptionPosition captionPosition) {
if (caption == null) {
return;
}
captionWrap.removeClassName("v-caption-on-" + this.captionPosition.name().toLowerCase(Loca... | 3.26 |
framework_Slot_attachListeners_rdh | /**
* Attaches resize listeners to the widget, caption and spacing elements
*/private void attachListeners() {
if ((getWidget() != null) && (layout.getLayoutManager() != null)) {
LayoutManager lm = layout.getLayoutManager();if ((getCaptionElement() != null) && (captionResizeListener != nu... | 3.26 |
framework_Slot_detachListeners_rdh | /**
* Detaches resize listeners from the widget, caption and spacing elements
*/
private void detachListeners() {
if ((getWidget() != null) && (layout.getLayoutManager() != null)) {
LayoutManager lm = layout.getLayoutManager();
if ((getCaptionElement() != null) && (captionResizeListener != null)) {lm.... | 3.26 |
framework_Slot_setLayout_rdh | /**
* Set the layout in which this slot is. This method must be called exactly
* once at slot construction time when using the default constructor.
*
* The method should normally only be called by
* {@link VAbstractOrderedLayout#createSlot(Widget)}.
*
* @since 7.6
* @param layout
* the layout containing the ... | 3.26 |
framework_Slot_getCaptionPosition_rdh | /**
* Get the position of the caption relative to the slot.
*
* @return the position
*/
public CaptionPosition getCaptionPosition() {
return captionPosition;
}
/**
* Set the caption of the slot.
*
* @param captionText
* The text of the caption
* @param iconUrl
* The icon URL, must already be run trough t... | 3.26 |
framework_Slot_getCaptionElement_rdh | /**
* Get the slots caption element.
*
* @return the caption element or {@code null} if there is no caption
*/
@SuppressWarnings("deprecation")
public Element getCaptionElement() {
return DOM.asOld(caption);
} | 3.26 |
framework_Slot_setRelativeWidth_rdh | /**
* Set if the slot has a relative width.
*
* @param relativeWidth
* True if slot uses relative width, false if the slot has a
* static width
*/
public void setRelativeWidth(boolean relativeWidth) {
this.relativeWidth = relativeWidth;
updateRelativeSize(relativeWidth, "width");
}
/**
* Returns whether the... | 3.26 |
framework_Slot_updateRelativeSize_rdh | /**
* Updates the captions size if the slot is relative
*
* @param isRelativeSize
* Is the slot relatively sized
* @param direction
* The direction of the caption
*/
private void updateRelativeSize(boolean isRelativeSize, String direction) {
if (isRelativeSize && hasCaption()) {
captionWrap.getStyle().setPro... | 3.26 |
framework_Slot_hasSpacing_rdh | /**
* Does the slot have spacing.
*
* @return {@code true} if the slot has spacing, {@code false} otherwise
*/
public boolean hasSpacing() {
return getSpacingElement() != null;
} | 3.26 |
framework_Slot_getSpacingResizeListener_rdh | /**
* Returns the spacing element resize listener for this slot if one has been
* set.
*
* @return the listener or {@code null} if not set
*/
public ElementResizeListener getSpacingResizeListener() {return spacingResizeListener;
} | 3.26 |
framework_Slot_setRelativeHeight_rdh | /**
* Set if the slot has a relative height.
*
* @param relativeHeight
* True if the slot uses a relative height, false if the slot has
* a static height
*/
public void setRelativeHeight(boolean relativeHeight) {this.relativeHeight = relativeHeight;
updateRelativeSize(relativeHeight, "height");
}
/**
* Retu... | 3.26 |
framework_Slot_setAlignment_rdh | /**
* Sets how the widget is aligned inside the slot.
*
* @param alignment
* The alignment inside the slot
*/
public void setAlignment(AlignmentInfo alignment) {
this.alignment = alignment;
if ((alignment != null) && alignment.isHorizontalCenter()) {
addStyleName(ALIGN_CLASS_PREFIX
+ "c... | 3.26 |
framework_Slot_setSpacingResizeListener_rdh | /**
* Sets the spacing element resize listener for this slot.
*
* @param spacingResizeListener
* the listener to set, or {@code null} to remove a previously
* set listener
*/ public void
setSpacingResizeListener(ElementResizeListener spacingResizeListener) {
detachListeners();
this.spacingResizeListen... | 3.26 |
framework_Slot_setStyleNames_rdh | /**
* Sets the style names for the slot containing the widget.
*
* @param stylenames
* The style names for the slot
*/
protected void setStyleNames(String... stylenames) {
setStyleName(SLOT_CLASSNAME);if (stylenames != null) {
for (String stylename : stylenames) {
addStyleDependentName(... | 3.26 |
framework_Slot_setWidgetResizeListener_rdh | /**
* Sets the widget resize listener for this slot.
*
* @param widgetResizeListener
* the listener to set, or {@code null} to remove a previously
* set listener
*/
public void setWidgetResizeListener(ElementResizeListener widgetResizeListener) {
detachListeners();
this.widgetResizeListener = widgetRe... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.