name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
framework_Escalator_setScrollLeft_rdh | /**
* Sets the logical horizontal scroll offset. Note that will not necessarily
* become the same as the {@code scrollLeft} attribute in the DOM.
*
* @param scrollLeft
* the number of pixels to scroll horizontally
*/public void setScrollLeft(final double scrollLeft) {
horizontalScrollbar.setScrollPos(scrollLeft... | 3.26 |
framework_Escalator_m9_rdh | /**
* Scrolls vertically to a row and the spacer below it.
* <p>
* If a spacer is not open at that index, this method behaves like
* {@link #scrollToRow(int, ScrollDestination, int)}
*
* @since 7.5.0
* @param rowIndex
* the index of the logical row to scroll to. -1 takes the
* topmost spacer into account a... | 3.26 |
framework_Escalator_paintRemoveRow_rdh | /**
* Removes a row element from the DOM, invoking
* {@link #getEscalatorUpdater()}
* {@link EscalatorUpdater#preDetach(Row, Iterable) preDetach} and
* {@link EscalatorUpdater#postDetach(Row, Iterable) postDetach} before
* and after removing the row, respectively.
* <p>
* This method must be called for each remo... | 3.26 |
framework_Escalator_setHeightByRows_rdh | /**
* Sets the number of rows that should be visible in Escalator's body, while
* {@link #getHeightMode()} is {@link HeightMode#ROW}.
* <p>
* If Escalator is currently not in {@link HeightMode#ROW}, the given value
* is remembered, and applied once the mode is applied.
*
* @param rows
* the number of rows tha... | 3.26 |
framework_Escalator_setStylePrimaryName_rdh | /**
* The primary style name for the container.
*
* @param primaryStyleName
* the style name to use as prefix for all row and cell style
* names.
*/
protected void setStylePrimaryName(String primaryStyleName) {
String oldStyle = getStylePrimaryName();
if
(SharedUtil.equals(oldStyle, primaryStyleName)) {
ret... | 3.26 |
framework_Escalator_getSpacerHeightsSum_rdh | /**
* Calculates the sum of all spacers.
*
* @return sum of all spacers, or 0 if no spacers present
*/ public double getSpacerHeightsSum() {
return getHeights(rowIndexToSpacer.values());
}
/**
* Calculates the sum of all spacers from one row index onwards.
*
* @param logicalRowIndex
* the spacer to include as... | 3.26 |
framework_Escalator_insertColumns_rdh | /**
* {@inheritDoc }
* <p>
* <em>Implementation detail:</em> This method does no DOM modifications
* (i.e. is very cheap to call) if there is no data for rows when this
* method is called.
*
* @see #hasColumnAndRowData()
*/
@Override
public void insertColumns(final int index, final int numberOfColumns) {
// Va... | 3.26 |
framework_Escalator_getHeightMode_rdh | /**
* Returns the current {@link HeightMode} the Escalator is in.
* <p>
* Defaults to {@link HeightMode#CSS}.
*
* @return the current HeightMode
*/
public HeightMode getHeightMode() {
return heightMode;
}
/**
* Returns the {@link RowContainer} | 3.26 |
framework_Escalator_allowTouch_rdh | // Allow touchStart for IE11 and Edge even though there is no touch
// (#18737),
// otherwise allow touch only if there is a single touch in the
// event
private boolean allowTouch(final TouchHandlerBundle.CustomTouchEvent event) {
if (isCurrentBrowserIE11OrEdge()) {
return POINTER_EVENT_TYPE_TOUCH.equals... | 3.26 |
framework_Escalator_addRowVisibilityChangeHandler_rdh | /**
* Adds an event handler that gets notified when the range of visible rows
* changes e.g. because of scrolling, row resizing or spacers
* appearing/disappearing.
*
* @param rowVisibilityChangeHandler
* the event handler
* @return a handler registration for the added handler
*/
public HandlerRegistration ad... | 3.26 |
framework_Escalator_scrollToColumn_rdh | /**
* Scrolls the body horizontally so that the column at the given index is
* visible and there is at least {@code padding} pixels in the direction of
* the given scroll destination.
*
* @param columnIndex
* the index of the column to scroll to
* @param destination
* where the column should be aligned visu... | 3.26 |
framework_Escalator_getScrollPos_rdh | /**
* ScrollDestination case-specific handling logic.
*/
private static double getScrollPos(final ScrollDestination destination, final double targetStartPx, final double targetEndPx, final double viewportStartPx, final double viewportEndPx, final double padding) {
final double viewportLength = viewportEndPx - viewpor... | 3.26 |
framework_Escalator_getBody_rdh | /**
* Returns the row container for the body in this Escalator.
*
* @return the body. Never <code>null</code>
*/
public BodyRowContainer getBody() {
return body;
} | 3.26 |
framework_Escalator_updateDecoClip_rdh | /**
* Crop the decorator element so that it doesn't overlap the header
* and footer sections.
*
* @param bodyTop
* the top cordinate of the escalator body
* @param bodyBottom
* the bottom cordinate of the escalator body
* @param decoWidth
* width of the deco
*/
private void
updateDecoClip(final double b... | 3.26 |
framework_Escalator_setScrollTop_rdh | /**
* Sets the vertical scroll offset. Note that this will not necessarily
* become the same as the {@code scrollTop} attribute in the DOM.
*
* @param scrollTop
* the number of pixels to scroll vertically
*/
public void setScrollTop(final double scrollTop) {
verticalScrollbar.setScrollPos(scrollTop);} | 3.26 |
framework_Escalator_getWidgetFromCell_rdh | /**
* Returns the widget from a cell node or <code>null</code> if there is no
* widget in the cell
*
* @param cellNode
* The cell node
*/
static Widget getWidgetFromCell(Node cellNode) {
Node possibleWidgetNode = cellNode.getFirstChild();
if ((possibleWidgetNode != null) && (possibleWidgetNode.getNodeType() =... | 3.26 |
framework_Escalator_getLogicalRowIndex_rdh | /**
* Gets the logical row index for the given table row element.
*
* @param tr
* the table row element inside this container
* @return the logical index of the given element
*/
public int getLogicalRowIndex(final TableRowElement tr) {
return tr.getSectionRowIndex();
} | 3.26 |
framework_Escalator_verifyEscalatorCount_rdh | /**
* Make sure that there is a correct amount of escalator rows: Add more
* if needed, or remove any superfluous ones.
* <p>
* This method should be called when e.g. the height of the Escalator
* changes.
* <p>
* <em>Note:</em> This method will make sure that the escalator rows are
* placed in the proper place... | 3.26 |
framework_Escalator_getHeader_rdh | /**
* Returns the row container for the header in this Escalator.
*
* @return the header. Never <code>null</code>
*/
public RowContainer getHeader() {
return header;
} | 3.26 |
framework_Escalator_fillAndPopulateEscalatorRowsIfNeeded_rdh | /**
* Adds new physical escalator rows to the DOM at the given index if
* there's still a need for more escalator rows.
* <p>
* If Escalator already is at (or beyond) max capacity, this method does
* nothing to the DOM.
*
* @param index
* the index at which to add new escalator rows.
* <em>Note:</em>It is ... | 3.26 |
framework_Escalator_addScrollHandler_rdh | /**
* Adds a scroll handler to this escalator.
*
* @param handler
* the scroll handler to add
* @return a handler registration for the registered scroll handler
*/
public HandlerRegistration addScrollHandler(ScrollHandler handler) {
return addHandler(handler, ScrollEvent.TYPE);
} | 3.26 |
framework_Escalator_getMaxVisibleRowCount_rdh | /**
* Gets the maximum number of body rows that can be visible on the screen at
* once.
*
* @return the maximum capacity
*/
public int getMaxVisibleRowCount() {
return body.getMaxVisibleRowCount();
} | 3.26 |
framework_Escalator_isCurrentBrowserIE11OrEdge_rdh | /**
* Internal method for checking whether the browser is IE11 or Edge
*
* @return true only if the current browser is IE11, or Edge
*/
private static boolean isCurrentBrowserIE11OrEdge() {
return BrowserInfo.get().isIE11() || BrowserInfo.get().isEdge();
} | 3.26 |
framework_Escalator_recalculateElementSizes_rdh | /**
* Recalculates the dimensions for all elements that require manual
* calculations. Also updates the dimension caches.
* <p>
* <em>Note:</em> This method has the <strong>side-effect</strong>
* automatically makes sure that an appropriate amount of escalator rows are
* present. So, if the body area grows, more ... | 3.26 |
framework_Escalator_m4_rdh | /**
* Adjust the scroll position and move the contained rows.
* <p>
* The difference between using this method and simply scrolling is that
* this method "takes the rows and spacers with it" and renders them
* appropriately. The viewport may be scrolled any arbitrary amount, and
* the contents are moved appropria... | 3.26 |
framework_Escalator_getInnerWidth_rdh | /**
* Gets the escalator's inner width. This is the entire width in pixels,
* without the vertical scrollbar.
*
* @return escalator's inner width
*/
public double getInnerWidth() {
return WidgetUtil.getRequiredWidthBoundingClientRectDouble(tableWrapper);} | 3.26 |
framework_Escalator_insertRows_rdh | /**
* {@inheritDoc }
* <p>
* <em>Implementation detail:</em> This method does no DOM modifications
* (i.e. is very cheap to call) if there is no data for columns when
* this method is called.
*
* @see #hasColumnAndRowData()
*/
@Override
public void insertRows(final int index, final int numberOfRows) {
if ((in... | 3.26 |
framework_Escalator_setScrollLocked_rdh | /**
* Sets whether a scroll direction is locked or not.
* <p>
* If a direction is locked, the escalator will refuse to scroll in that
* direction.
*
* @param direction
* the orientation of the scroll to set the lock status
* @param locked
* <code>true</code> to lock, <code>false</code> to unlock
*/
public... | 3.26 |
framework_Escalator_calculateMaxColWidth_rdh | /**
* Iterates through all the cells in a column and returns the width of
* the widest element in this RowContainer.
*
* @param index
* the index of the column to inspect
* @return the pixel width of the widest element in the indicated column
*/
public double calculateMaxColWidth(int index) {
TableRowElement r... | 3.26 |
framework_LayoutDemo_init_rdh | /**
* Initialize Application. Demo components are added to main window.
*/
@Override
public void init() {
final LegacyWindow mainWindow = new LegacyWindow("Layout demo");
setMainWindow(mainWindow);
//
// Create horizontal ordered layout
//
final HorizontalLayout layoutA = new HorizontalLayo... | 3.26 |
framework_LayoutDemo_fillLayout_rdh | /**
* Add multiple demo component to given layout.
*
* @param layout
* where components are added
* @param numberOfComponents
* to add
*/
private void fillLayout(Layout layout, int numberOfComponents) {
for (int i = 1; i <= numberOfComponents; i++) {
layout... | 3.26 |
framework_SelectionEvent_getSelected_rdh | /**
* A {@link Collection} of all the itemIds that are currently selected.
*
* @return a Collection of the itemIds that are currently selected
*/
public Set<Object> getSelected() {
return Collections.unmodifiableSet(newSelection);} | 3.26 |
framework_SelectionEvent_getAdded_rdh | /**
* A {@link Collection} of all the itemIds that became selected.
* <p>
* <em>Note:</em> this excludes all itemIds that might have been previously
* selected.
*
* @return a Collection of the itemIds that became selected
*/
public Set<Object> getAdded() {
return setDifference(newSelection, oldSelection);
... | 3.26 |
framework_SelectionEvent_setDifference_rdh | /**
* Slightly optimized set difference that can return the original set or a
* modified one.
*
* @param set1
* original set
* @param set2
* the set to subtract
* @return the difference set
*/
private static <T> Set<T> setDifference(Set<T> set1, Set<T> set2) {
if (set2.isEmpty()) {
return set1;... | 3.26 |
framework_CalendarConnector_getActionStartDate_rdh | /**
* Get the start date for an action item.
*
* @param actionKey
* The unique action key
* @return * @throws ParseException
*/
public Date getActionStartDate(String actionKey) throws ParseException {
String dateStr = f0.get(actionKey + "_s");
DateTimeFormat formatter = DateTimeFormat.getFormat(DateCon... | 3.26 |
framework_CalendarConnector_getActionIcon_rdh | /**
* Get the icon url for a context menu item.
*
* @param actionKey
* The unique action key
* @return */
public String getActionIcon(String actionKey) {
return f0.get(actionKey + "_i");
} | 3.26 |
framework_CalendarConnector_registerListeners_rdh | /**
* Registers listeners on the calendar so server can be notified of the
* events.
*/
protected void
registerListeners() {
VCalendar calendar = getWidget();
calendar.setListener(new DateClickListener() {
@Override
public void dateClick(String date) {
if ((!calendar.isDisabled())... | 3.26 |
framework_CalendarConnector_m2_rdh | /**
* Returns ALL currently registered events. Use {@link #getActions(Date)} to
* get the actions for a specific date
*/
@Override
public Action[] m2() {
List<Action> actions = new ArrayList<Action>();
for (int i = 0; i < f1.size(); i++) {
final String actionKey = f1.get(i);
final VCalendarA... | 3.26 |
framework_CalendarConnector_getActionCaption_rdh | /**
* Get the text that is displayed for a context menu item.
*
* @param actionKey
* The unique action key
* @return */
public String getActionCaption(String actionKey) {
return f0.get(actionKey + "_c");} | 3.26 |
framework_CalendarConnector_getActionID_rdh | /**
* Get the original action ID that was passed in from the shared state.
*
* @since 7.1.2
* @param actionKey
* the unique action key
* @return */
public String getActionID(String actionKey) {
return f0.get(actionKey + "_k");
} | 3.26 |
framework_CalendarConnector_getActionEndDate_rdh | /**
* Get the end date for an action item.
*
* @param actionKey
* The unique action key
* @return * @throws ParseException
*/
public Date getActionEndDate(String actionKey) throws ParseException {
String dateStr = f0.get(actionKey + "_e");
DateTimeFormat formatter = DateTimeFormat.getFormat(DateConstan... | 3.26 |
framework_CalendarConnector_registerEventToolTips_rdh | /**
* Register the description of the events as tooltips. This way, any event
* displaying widget can use the event index as a key to display the
* tooltip.
*/private void registerEventToolTips(List<CalendarState.Event> events) {
for (CalendarState.Event e : events) {
if ((e.description != null) && (!""... | 3.26 |
framework_ThemeResource_hashCode_rdh | /**
*
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
return resourceID.hashCode();
} | 3.26 |
framework_ThemeResource_toString_rdh | /**
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return resourceID;
} | 3.26 |
framework_ThemeResource_getMIMEType_rdh | /**
*
* @see com.vaadin.server.Resource#getMIMEType()
*/
@Override
public String getMIMEType() {
return FileTypeResolver.getMIMEType(getResourceId());
} | 3.26 |
framework_ThemeResource_getResourceId_rdh | /**
* Gets the resource id.
*
* @return the resource id.
*/ public
String getResourceId() {
return
resourceID;
} | 3.26 |
framework_StringLengthValidator_setMinLength_rdh | /**
* Sets the minimum permissible length.
*
* @param minLength
* the minimum length to accept or null for no limit
*/
public void setMinLength(Integer minLength) {
validator.setMaxValue(minLength);
} | 3.26 |
framework_StringLengthValidator_getMinLength_rdh | /**
* Gets the minimum permissible length of the string.
*
* @return the minimum length of the string or null if there is no limit
*/public Integer getMinLength() {
return validator.getMinValue();
} | 3.26 |
framework_StringLengthValidator_setMaxLength_rdh | /**
* Sets the maximum permissible length of the string.
*
* @param maxLength
* the maximum length to accept or null for no limit
*/
public void setMaxLength(Integer maxLength) {
validator.setMaxValue(maxLength);
} | 3.26 |
framework_Tree_getParent_rdh | /**
* Gets the ID of the parent Item of the specified Item.
*
* @see Container.Hierarchical#getParent(Object)
*/
@Override
public Object getParent(Object itemId) {
return ((Container.Hierarchical) (items)).getParent(itemId);
} | 3.26 |
framework_Tree_setItemDescriptionGenerator_rdh | /**
* Set the item description generator which generates tooltips for the tree
* items.
*
* @param generator
* The generator to use or null to disable
*/
public void setItemDescriptionGenerator(ItemDescriptionGenerator generator) {
if (generator != itemDescriptionGenerator) {itemDescriptionGenerator = gen... | 3.26 |
framework_Tree_addExpandListener_rdh | /**
* Adds the expand listener.
*
* @param listener
* the Listener to be added.
*/
public void addExpandListener(ExpandListener listener) {
addListener(Tree.ExpandEvent.class, listener,... | 3.26 |
framework_Tree_removeAllActionHandlers_rdh | /**
* Removes all action handlers.
*/
public void removeAllActionHandlers() {
actionHandlers = null;
f0 =
null;
markAsDirty();
} | 3.26 |
framework_Tree_setDragMode_rdh | /**
* Sets the drag mode that controls how Tree behaves as a
* {@link DragSource}.
*
* @param dragMode
* the drag mode to set
*/
public void setDragMode(TreeDragMode dragMode) {
this.dragMode = dragMode;
markAsDirty();
}
/**
*
* @return the drag mode that controls how Tree behaves as a
{@link DragSou... | 3.26 |
framework_Tree_rootItemIds_rdh | /**
* Gets the IDs of all Items in the container that don't have a parent.
*
* @see Container.Hierarchical#rootItemIds()
*/@Override
public Collection<?> rootItemIds() {
return ((Container.Hierarchical) (items)).rootItemIds();
} | 3.26 |
framework_Tree_isExpanded_rdh | /* Expanding and collapsing */
/**
* Check is an item is expanded.
*
* @param itemId
* the item id.
* @return true if the item is expanded.
*/
public boolean isExpanded(Object itemId) {
return expanded.contains(itemId);
} | 3.26 |
framework_Tree_setSelectable_rdh | /**
* Sets the selectable state. Selectable determines if the a node can be
* selected on the client side. Selectable does not affect
* {@link #setValue(Object)} or {@link #select(Object)}.
*
* <p>
* The tree is selectable by default.
* </p>
*
* @param selectable
* The new selectable state.
*/
public void... | 3.26 |
framework_Tree_collapseItem_rdh | /**
* Collapses an item.
*
* @param itemId
* the item id.
* @return True if the collapse operation succeeded
*/
public boolean collapseItem(Object itemId) {
// Succeeds if the node is already collapsed
if (!isExpanded(itemId)) {
return true;
}
// Collapse
expanded.remove(itemId);
... | 3.26 |
framework_Tree_handleSelectedItems_rdh | /**
* Handles the selection
*
* @param variables
* The variables sent to the server from the client
*/
private void handleSelectedItems(Map<String, Object> variables) {
// Converts the key-array to id-set
final LinkedList<Object> s = new LinkedList<Object>();
for (String key : ((String[]) (variable... | 3.26 |
framework_Tree_expandItem_rdh | /**
* Expands an item.
*
* @param itemId
* the item id.
* @param sendChildTree
* flag to indicate if client needs subtree or not (may be
* cached)
* @return True if the expand operation succeeded
*/
private boolean expandItem(Object itemId, boolean sendChildTree) {
// Succeeds if the node is already ... | 3.26 |
framework_Tree_setChildrenAllowed_rdh | /**
* Sets the given Item's capability to have children.
*
* @see Container.Hierarchical#setChildrenAllowed(Object, boolean)
*/
@Override
public boolean setChildrenAllowed(Object itemId, boolean areChildrenAllowed) {
final boolean success = ((Container.Hierarchical) (items)).setChildrenAllowed(itemId, areChildr... | 3.26 |
framework_Tree_collapseItemsRecursively_rdh | /**
* Collapses the items recursively.
*
* Collapse all the children recursively starting from an item. Operation
* succeeds only if all expandable items are collapsed.
*
* @param startItemId
* ID of the initial item
* @return True if the collapse operation succeeded
*/
public boolean collapseItemsRecursivel... | 3.26 |
framework_Tree_areChildrenAllowed_rdh | /* Container.Hierarchical API */
/**
* Tests if the Item with given ID can have any children.
*
* @see Container.Hierarchical#areChildrenAllowed(Object)
*/
@Override
public boolean areChildrenAllowed(Object itemId) {
return ((Container.Hierarchical) (items)).areChildrenAllowed(itemId);
} | 3.26 |
framework_Tree_fireCollapseEvent_rdh | /**
* Emits collapse event.
*
* @param itemId
* the item id.
*/
protected void fireCollapseEvent(Object itemId) {
fireEvent(new CollapseEvent(this, itemId));
} | 3.26 |
framework_Tree_addCollapseListener_rdh | /**
* Adds the collapse listener.
*
* @param listener
* the Listener to be added.
*/
public void addCollapseListener(CollapseListener listener) {
addListener(Tree.CollapseEvent.class, listener, CollapseListener.COLLAPSE_METHOD);
}
/**
*
* @deprecated As of 7.0, replaced by
{@link #addCollapseListener(Coll... | 3.26 |
framework_Tree_setHtmlContentAllowed_rdh | /**
* Sets whether html is allowed in the item captions. If set to
* <code>true</code>, the captions are passed to the browser as html and the
* developer is responsible for ensuring no harmful html is used. If set to
* <code>false</code>, the content is passed to the browser as plain text.
* The default setting i... | 3.26 |
framework_Tree_addActionHandler_rdh | /* Action container */
/**
* Adds an action handler.
*
* @see com.vaadin.event.Action.Container#addActionHandler(Action.Handler)
*/
@Override
public void addActionHandler(Action.Handler actionHandler) {
if (actionHandler != null) {
if (actionHandlers == null) {
actionHandlers = new LinkedLi... | 3.26 |
framework_Tree_removeExpandListener_rdh | /**
* Removes the expand listener.
*
* @param listener
* the Listener to be removed.
*/
public void removeExpandListener(ExpandListener listener) {
removeListener(Tree.ExpandEvent.class, listener, ExpandListener.EXPAND_METHOD);
}
/**
*
* @deprecated As of 7.0, replaced by
{@link #removeExpandListener(Exp... | 3.26 |
framework_Tree_getItemDescriptionGenerator_rdh | /**
* Get the item description generator which generates tooltips for tree
* items.
*
* @return the item description generator
*/
public ItemDescriptionGenerator getItemDescriptionGenerator() {
return itemDescriptionGenerator;
} | 3.26 |
framework_Tree_isRoot_rdh | /**
* Tests if the Item specified with <code>itemId</code> is a root Item.
*
* @see Container.Hierarchical#isRoot(Object)
*/
@Override
public boolean isRoot(Object itemId) {return ((Container.Hierarchical) (items)).isRoot(itemId);
} | 3.26 |
framework_Tree_setNullSelectionItemId_rdh | /**
* Tree does not support <code>setNullSelectionItemId</code>.
*
* @see AbstractSelect#setNullSelectionItemId(java.lang.Object)
*/
@Override
public void setNullSelectionItemId(Object nullSelectionItemId) throws UnsupportedOperationException {
if (nullSelectionItemId != null) {
throw new UnsupportedOpe... | 3.26 |
framework_Tree_removeItem_rdh | // Overridden so javadoc comes from Container.Hierarchical
@Override
public boolean removeItem(Object itemId) throws UnsupportedOperationException {
return super.removeItem(itemId);
} | 3.26 |
framework_Tree_getVisibleItemIds_rdh | /**
* Gets the visible item ids.
*
* @see Select#getVisibleItemIds()
*/
@Override
public Collection<?> getVisibleItemIds() {
final LinkedList<Object> visible = new LinkedList<Object>();
// Iterates trough hierarchical tree using a stack of iterators
final Stack<Iterator<?>> iteratorStack = new Stack<It... | 3.26 |
framework_Tree_accept_rdh | /* Uses enhanced server side check */
@Override
public boolean accept(DragAndDropEvent dragEvent) {
try
{
// must be over tree node and in the middle of it (not top or
// bottom
// part)
TreeTargetDetails eventDetails = ((TreeTargetDetails) (dragEvent.getTargetDetails()));
... | 3.26 |
framework_Tree_removeActionHandler_rdh | /**
* Removes an action handler.
*
* @see com.vaadin.event.Action.Container#removeActionHandler(Action.Handler)
*/
@Override
public void removeActionHandler(Action.Handler actionHandler) {
if ((actionHandlers != null)
&& actionHandlers.contains... | 3.26 |
framework_Tree_paintContent_rdh | /**
* Paints any needed component-specific things to the given UIDL stream.
*
* @see AbstractComponent#paintContent(PaintTarget)
*/
@Override
public void paintContent(PaintTarget target) throws PaintException {
initialPaint = false;
if (partialUpdate) {
target.addAttribute("partialUpdate", true);
... | 3.26 |
framework_Tree_getItemIdInto_rdh | /**
* If the event is on a node that can not have children (see
* {@link Tree#areChildrenAllowed(Object)}), this method returns the
* parent item id of the target item (see {@link #getItemIdOver()} ).
* The identifier of the parent node is also returned if the cursor is
* on the top part of node. Else this method ... | 3.26 |
framework_Tree_readItem_rdh | /**
* Reads an Item from a design and inserts it into the data source.
* Recursively handles any children of the item as well.
*
* @since 7.5.0
* @param node
* an element representing the item (tree node).
* @param selected
* A set accumulating selected items. If the item... | 3.26 |
framework_Tree_setMultiselectMode_rdh | /**
* Sets the behavior of the multiselect mode.
*
* @param mode
* The mode to set
*/
public void setMultiselectMode(MultiSelectMode mode) {
if ((multiSelectMode != mode) && (mode != null)) {
multiSelectMode = mode;
markAsDirty();
}
} | 3.26 |
framework_Tree_key_rdh | /**
* Helper API for {@link TreeDropCriterion}
*
* @param itemId
* @return */
private String key(Object itemId) {
return itemIdMapper.key(itemId);
} | 3.26 |
framework_Tree_fireExpandEvent_rdh | /**
* Emits the expand event.
*
* @param itemId
* the item id.
*/
protected void fireExpandEvent(Object itemId) {
fireEvent(new ExpandEvent(this, itemId));
} | 3.26 |
framework_Tree_isSelectable_rdh | /**
* Returns the current selectable state. Selectable determines if the a node
* can be selected on the client side. Selectable does not affect
* {@link #setValue(Object)} or {@link #select(Object)}.
*
* <p>
* The tree is selectable by default.
* </p>
*
* @return the current selectable state.
*/
public boole... | 3.26 |
framework_Tree_getMultiselectMode_rdh | /**
* Returns the mode the multiselect is in. The mode controls how
* multiselection can be done.
*
* @return The mode
*/
public MultiSelectMode getMultiselectMode() {
return
multiSelectMode;
} | 3.26 |
framework_Tree_changeVariables_rdh | /* Component API */
@Override
public void changeVariables(Object source, Map<String, Object> variables) {
if (variables.containsKey("clickedKey")) {
String key = ((String) (variables.get("clickedKey")));
Object id = itemIdMapper.get(key);
MouseEventDetails details
... | 3.26 |
framework_Tree_setItemStyleGenerator_rdh | /**
* Sets the {@link ItemStyleGenerator} to be used with this tree.
*
* @param itemStyleGenerator
* item style generator or null to remove generator
*/
public void setItemStyleGenerator(ItemStyleGenerator itemStyleGenerator) {
if (this.itemStyleGenerator != itemStyleGenerator) {
this.itemStyleGenera... | 3.26 |
framework_Tree_setItemIconAlternateText_rdh | /**
* Set the alternate text for an item.
*
* Used when the item has an icon.
*
* @param itemId
* the id of the item to be assigned an icon.
* @param altText
* the alternative text for the icon
*/
public void setItemIconAlternateText(Object itemId, String altText) {
if (itemId != null) {
if (a... | 3.26 |
framework_Tree_hasChildren_rdh | /**
* Tests if the Item specified with <code>itemId</code> has child Items.
*
* @see Container.Hierarchical#hasChildren(Object)
*/
@Override
public boolean hasChildren(Object itemId) {
return ((Container.Hierarchical) (items)).hasChildren(itemId);
} | 3.26 |
framework_Tree_setNewItemsAllowed_rdh | /**
* Adding new items is not supported.
*
* @throws UnsupportedOperationException
* if set to true.
* @see Select#setNewItemsAllowed(boolean)
*/
@Override
public void setNewItemsAllowed(boolean allowNewOptions) throws UnsupportedOperationException {
if (allowNewOptions) {
throw new UnsupportedOpera... | 3.26 |
framework_Tree_removeCollapseListener_rdh | /**
* Removes the collapse listener.
*
* @param listener
* the Listener to be removed.
*/
public void removeCollapseListener(CollapseListener listener) {
removeListener(Tree.CollapseEvent.class, listener, CollapseListener.COLLAPSE_METHOD);
}
/**
*
* @deprecated As of 7.0, replaced by
{@link #removeCollap... | 3.26 |
framework_Tree_setItemIcon_rdh | /**
* Sets the icon for an item.
*
* @param itemId
* the id of the item to be assigned an icon.
* @param icon
* the icon to use or null.
* @param altText
* the alternative text for the icon
*/
public void setItemIcon(... | 3.26 |
framework_Tree_writeItem_rdh | /**
* Recursively writes a data source Item and its children to a design.
*
* @since 7.5.0
* @param design
* the element into which to insert the item
* @param itemId
* the id of the item to write
* @param context
* the DesignContext instance used in writing
* @return */
@Override
protected Element wri... | 3.26 |
framework_Tree_m0_rdh | /**
* Expands the items recursively
*
* Expands all the children recursively starting from an item. Operation
* succeeds only if all expandable items are expanded.
*
* @param startItemId
* ID of the initial item
* @return True if the expand operation succeeded
*/
public boolean m0(Object startItemId) {
b... | 3.26 |
framework_Tree_setContainerDataSource_rdh | /* Overriding select behavior */
/**
* Sets the Container that serves as the data source of the viewer.
*
* @see Container.Viewer#setContainerDataSource(Container)
*/
@Override
public void setContainerDataSource(Container newDataSource) {
if (newDataSource == null) {newDataSource = new HierarchicalContainer();}... | 3.26 |
framework_Flash_setStandby_rdh | /**
* Sets standby.
*
* @param standby
* Standby string.
*/
public void setStandby(String standby) {
if ((standby != m0().standby) || ((standby != null) && (!standby.equals(m0().standby)))) {
m0().standby = standby;
requestRepaint();
}
} | 3.26 |
framework_Flash_getParameter_rdh | /**
* Gets the value of an object parameter. Parameters are optional
* information, and they are passed to the instantiated object. Parameters
* are are stored as name value pairs.
*
* @param name
* name of the parameter
* @return the Value of parameter or null if not found.
*/
public String getParameter(Stri... | 3.26 |
framework_Flash_getStandby_rdh | /**
* Returns standby.
*
* @since 7.4.1
* @return Standby string.
*/
public String getStandby() {
return getState(false).standby;
} | 3.26 |
framework_Flash_removeParameter_rdh | /**
* Removes an object parameter from the list.
*
* @param name
* the name of the parameter to remove.
*/
public void removeParameter(String name) {
if (m0().embedParams == null) {
return;
}
m0().embedParams.remove(name);
requestRepaint();
} | 3.26 |
framework_Flash_m1_rdh | /**
* Returns an iterable with declared parameter names.
*
* @see #setParameter(String, String)
* @see #getParameter(String)
* @since 7.4.1
* @return An iterable with declared parameter names.
*/
public Iterable<String> m1() {
Map<String, String> map = getState(false).embedParams;
if (map == null) {
... | 3.26 |
framework_Flash_setCodebase_rdh | /**
* This attribute specifies the base path used to resolve relative URIs
* specified by the classid, data, and archive attributes. When absent, its
* default value is the base URI of the current document.
*
* @param codebase
* The base path
*/
public void setCodebase(String codebase) {
if ((codebase
... | 3.26 |
framework_Flash_setArchive_rdh | /**
* This attribute may be used to specify a space-separated list of URIs for
* archives containing resources relevant to the object, which may include
* the resources specified by the classid and data attributes. Preloading
* archives will generally result in reduced load times for objects.
* Archives specified ... | 3.26 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.