name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
AreaShop_BuyRegion_getFormattedPrice_rdh
/** * Get the formatted string of the price (includes prefix and suffix). * * @return The formatted string of the price */public String getFormattedPrice() { return Utils.formatCurrency(getPrice()); }
3.26
AreaShop_BuyRegion_setPrice_rdh
/** * Change the price of the region. * * @param price * The price to set this region to */ public void setPrice(Double price) { setSetting("buy.price", price); }
3.26
AreaShop_BuyRegion_getResellPrice_rdh
/** * Get the resell price of this region. * * @return The resell price if isInResellingMode(), otherwise 0.0 */ public double getResellPrice() { return Math.max(0, config.getDouble("buy.resellPrice")); }
3.26
AreaShop_BuyRegion_getFormattedInactiveTimeUntilSell_rdh
/** * Get a human readable string indicating how long the player can be offline until automatic unrent. * * @return String indicating the inactive time until unrent */ public String getFormattedInactiveTimeUntilSell() { return Utils.millisToHumanFormat(getInactiveTimeUntilSell()); }
3.26
AreaShop_BuyRegion_getMoneyBackPercentage_rdh
/** * Get the moneyBack percentage. * * @return The % of money the player will get back when selling */ public double getMoneyBackPercentage() { return Utils.evaluateToDouble(getStringSetting("buy.moneyBack"), this); }
3.26
AreaShop_BuyRegion_isBuyer_rdh
/** * Check if a player is the buyer of this region. * * @param player * Player to check * @return true if this player owns this region, otherwise false */ public boolean isBuyer(OfflinePlayer player) { return (player != null) && isBuyer(player.getUniqueId()); }
3.26
AreaShop_BuyRegion_getInactiveTimeUntilSell_rdh
/** * Minutes until automatic unrent when player is offline. * * @return The number of milliseconds until the region is unrented while player is offline */ public long getInactiveTimeUntilSell() { return Utils.getDurationFromMinutesOrStringInput(getStringSetting("buy.inactiveTimeUntilSell")); }
3.26
AreaShop_BuyRegion_getBuyer_rdh
/** * Get the UUID of the owner of this region. * * @return The UUID of the owner of this region */ public UUID getBuyer() { String buyer = config.getString("buy.buyer"); if (buyer != null) { try { return UUID.fromString(buyer); } catch (IllegalArgumentException e) { ...
3.26
AreaShop_BuyRegion_getMoneyBackAmount_rdh
/** * Get the amount of money that should be paid to the player when selling the region. * * @return The amount of money the player should get back */ public double getMoneyBackAmount() { return getPrice() * (getMoneyBackPercentage() / 100.0); }
3.26
AreaShop_BuyRegion_getPlayerName_rdh
/** * Get the name of the player that owns this region. * * @return The name of the player that owns this region, if unavailable by UUID it will return the old cached name, if that is unavailable it will return <UNKNOWN> */ public String getPlayerName() { String result = Utils.toName(getBuyer()); if (...
3.26
AreaShop_BuyRegion_disableReselling_rdh
/** * Stop this region from being in resell mode. */ public void disableReselling() { setSetting("buy.resellMode", null); setSetting("buy.resellPrice", null); }
3.26
AreaShop_BuyRegion_buy_rdh
/** * Buy a region. * * @param offlinePlayer * The player that wants to buy the region * @return true if it succeeded and false if not */ @SuppressWarnings("deprecation") public boolean buy(OfflinePlayer offlinePlayer) { // Check if the player has permission i...
3.26
AreaShop_BuyRegion_getPrice_rdh
/** * Get the price of the region. * * @return The price of the region */ public double getPrice() { return Math.max(0, Utils.evaluateToDouble(getStringSetting("buy.price"), this)); }
3.26
AreaShop_BuyRegion_isInResellingMode_rdh
/** * Check if the region is being resold. * * @return true if the region is available for reselling, otherwise false */ public boolean isInResellingMode() { return config.getBoolean("buy.resellMode"); }
3.26
AreaShop_BuyRegion_sell_rdh
/** * Sell a buyed region, get part of the money back. * * @param giveMoneyBack * true if the player should be given money back, otherwise false * @param executor * CommandSender to receive a message when the sell fails, or null * @return true if the region has been sold, otherwise false */ @SuppressWarning...
3.26
AreaShop_BuyRegion_getFormattedResellPrice_rdh
/** * Get the formatted string of the resellprice (includes prefix and suffix). * * @return The formatted string of the resellprice */ public String getFormattedResellPrice() { return Utils.formatCurrency(getResellPrice()); }
3.26
AreaShop_BuyRegion_isSold_rdh
/** * Check if the region is sold. * * @return true if the region is sold, otherwise false */ public boolean isSold() {return getBuyer() != null; }
3.26
AreaShop_BuyRegion_setBuyer_rdh
/** * Set the buyer of this region. * * @param buyer * The UUID of the player that should be set as buyer */ public void setBuyer(UUID buyer) { if (buyer == null) { setSetting("buy.buyer", null); setSetting("buy.buyerName", null); } else { setSetting("buy.buyer", buyer.toString()...
3.26
AreaShop_BuyRegion_enableReselling_rdh
/** * Set the region into resell mode with the given price. * * @param price * The price this region should be put up for sale */ public void enableReselling(double price) { setSetting("buy.resellMode", true); setSetting("buy.resellPrice", price); }
3.26
AreaShop_CommandsFeature_runEventCommands_rdh
/** * Run command for a certain event. * * @param region * Region to execute the events for * @param event * The event * @param before * The 'before' or 'after' commands */ public void runEventCommands(GeneralRegion region, GeneralRegion.RegionEvent event, boolean before) { ConfigurationSection eve...
3.26
AreaShop_WorldGuardHandler7_beta_2_buildDomain_rdh
/** * Build a DefaultDomain from a RegionAccessSet. * * @param regionAccessSet * RegionAccessSet to read * @return DefaultDomain containing the entities from the RegionAccessSet */ private DefaultDomain buildDomain(RegionAccessSet regionAccessSet) { DefaultDomain owners = new DefaultDomain(); for (Strin...
3.26
AreaShop_WorldGuardRegionFlagsFeature_parseAccessSet_rdh
/** * Build an RegionAccessSet from an input that specifies player names, player uuids and groups. * * @param input * Input string defining the access set * @return RegionAccessSet containing the entities parsed from the input */ public RegionAccessSet parseAccessSet(String input) { RegionAccessSet result ...
3.26
AreaShop_WorldGuardRegionFlagsFeature_updateRegionFlags_rdh
/** * Set the region flags/options to the values of a ConfigurationSection. * * @param region * The region to update the flags for * @param flags * The flags to apply * @return true if the flags have been set correctly, otherwise false */ private boolean updateRegionFlags(GeneralRegion region, Configuration...
3.26
AreaShop_WorldGuardRegionFlagsFeature_translateBukkitToWorldGuardColors_rdh
/** * Translate the color codes you put in greeting/farewell messages to the weird color codes of WorldGuard. * * @param message * The message where the color codes should be translated (this message has bukkit color codes) * @return The string with the WorldGuard color codes */ private String translateBukkitTo...
3.26
AreaShop_WorldGuardRegionFlagsFeature_setFlag_rdh
/** * Set a WorldGuard region flag. * * @param region * The WorldGuard region to set * @param flag * The flag to set * @param value * The value to set the flag to * @param <V> * They type of flag to set * @throws InvalidFlagFormat * When the value of the flag is wrong */ private <V> void setFlag...
3.26
AreaShop_UnrentCommand_canUse_rdh
/** * Check if a person can unrent the region. * * @param person * The person to check * @param region * The region to check for * @return true if the person can unrent it, otherwise false */ public static boolean canUse(CommandSender person, GeneralRegion region) { if (person.hasPermission("areashop....
3.26
framework_InterruptUpload_receiveUpload_rdh
/** * return an OutputStream that simply counts lineends */ @Override public OutputStream receiveUpload(final String filename, final String MIMEType) { counter = 0; total = 0; return new OutputStream() { private static final int searchedByte = '\n'; @Override public void write(fin...
3.26
framework_VCheckBoxGroup_setOptionEnabled_rdh
/** * Updates the checkbox's enabled state according to the widget's enabled, * read only and the item's enabled. * * @param checkBox * the checkbox to update * @param item * the item for the checkbox */ protected void setOptionEnabled(VCheckBox checkBox, JsonObject item) { boolean optionEnabled = !ite...
3.26
framework_VCheckBoxGroup_getItem_rdh
/** * Returns the JsonObject used to populate the CheckBox widget that contains * given Element. * * @since 8.2 * @param element * the element to search for * @return the related JsonObject; {@code null} if not found */ public Jso...
3.26
framework_VCheckBoxGroup_buildOptions_rdh
/* Build all the options */ public void buildOptions(List<JsonObject> items) { Roles.getGroupRole().set(getElement()); int i = 0; int widgetsToRemove = getWidget().getWidgetCount() - items.size(); if (widgetsToRemove < 0) { widgetsToRemove = 0; } List<Widget> ...
3.26
framework_DragEndEvent_getComponent_rdh
/** * Returns the drag source component where the dragend event occurred. * * @return Component which was dragged. */ @Override @SuppressWarnings("unchecked") public T getComponent() { return ((T) (super.getComponent())); }
3.26
framework_BeanItem_addNestedProperty_rdh
/** * Adds a nested property to the item. The property must not exist in the * item already and must of form "field1.field2" where field2 is a field in * the object referenced to by field1. If an intermediate property returns * null, the property will return a null value * * @param nestedPropertyId * property ...
3.26
framework_BeanItem_expandProperty_rdh
/** * Expands nested bean properties by replacing a top-level property with * some or all of its sub-properties. The expansion is not recursive. * * @param propertyId * property id for the property whose sub-properties are to be * expanded, * @param subPropertyIds * sub-properties to expand, all sub-prope...
3.26
framework_BeanItem_setBean_rdh
/** * Changes the Java Bean this item is based on. * <p> * This will cause any existing properties to be re-mapped to the new bean. * Any added custom properties which are not of type {@link MethodProperty} * or {@link NestedMethodProperty} will not be updated to reflect the change * of bean. * <p> * Changing t...
3.26
framework_BeanItem_getPropertyDescriptors_rdh
/** * <p> * Perform introspection on a Java Bean class to find its properties. * </p> * * <p> * Note : This version only supports introspectable bean properties and * their getter and setter methods. Stand-alone <code>is</code> and * <code>are</code> methods are not supported. * </p> * * @param beanClass * ...
3.26
framework_BeanItem_getBean_rdh
/** * Gets the underlying JavaBean object. * * @return the bean object. */ public BT getBean() { return bean; }
3.26
framework_ConnectorInfoPanel_update_rdh
/** * Update the panel to show information about a connector. * * @param connector */public void update(ServerConnector connector) { SharedState state = connector.getState(); Set<String> ignoreProperties = new HashSet<>(); ignoreProperties.add("id"); String html = getRowHTML("Id", connector.getCon...
3.26
framework_DragHandle_addTo_rdh
/** * Adds this drag handle to an HTML element. * * @param elem * an element */ public void addTo(Element elem) { removeFromParent(); parent = elem; parent.appendChild(element); }
3.26
framework_DragHandle_setCallback_rdh
/** * Sets the user-facing drag handle callback method. This allows code using * the DragHandle to react to the situations where a drag handle first * touched, when it's moved and when it's released. * * @param dragHandleCallback * the callback object to use (can be null) * @since 7.7.5 */ public void setCall...
3.26
framework_DragHandle_removeStyleName_rdh
/** * Removes existing style name from drag handle element. * * @param styleName * a CSS style name */ public void removeStyleName(String styleName) { element.removeClassName(styleName); }
3.26
framework_DragHandle_addStyleName_rdh
/** * Adds CSS style name to the drag handle element. * * @param styleName * a CSS style name */public void addStyleName(String styleName) { element.addClassName(styleName); }
3.26
framework_DragHandle_removeFromParent_rdh
/** * Removes this drag handle from whatever it was attached to. */ public void removeFromParent() { if (parent != null) {parent.removeChild(element); parent = null; } }
3.26
framework_BaseAlignment_buildLayout_rdh
/** * Build Layout for test */ private void buildLayout() { for (int i = 0; i < components.length; i++) { AbstractOrderedLayout layout = null; try { layout = ((AbstractOrderedLayout) (layoutClass.newInstance())); } catch (InstantiationException | IllegalAccessException e)...
3.26
framework_VTree_selectNode_rdh
/** * Selects a node and deselect all other nodes * * @param node * The node to select */ private void selectNode(TreeNode node, boolean deselectPrevious) { if (deselectPrevious) { deselectAll(); } if (node != null) { node.setSelected(true); selectedId...
3.26
framework_VTree_getPreviousSibling_rdh
/** * Returns the previous sibling in the tree * * @param node * The node to get the sibling for * @return The sibling node or null if the node is the first sibling */ private TreeNode getPreviousSibling(TreeNode node) {TreeNode parent = node.getParentNode(); List<TreeNode> children; if (parent == nul...
3.26
framework_VTree_updateDropHandler_rdh
/** * For internal use only. May be removed or replaced in the future. */ public void updateDropHandler(UIDL childUidl) { if (f1 == null) { f1 = new VAbstractDropHandler() { @Override public void dragEnter(VDragEvent drag) { } @Override prote...
3.26
framework_VTree_m7_rdh
/** * Select a range between two nodes which have no relation to each other * * @param startNode * The start node to start the selection from * @param endNode * The end node to end the selection to */ ...
3.26
framework_VTree_setState_rdh
/** * For internal use only. May be removed or replaced in the future. */public void setState(boolean state, boolean notifyServer) { if (open == state) {return; } if (state) { if ((!childrenLoaded) && notifyServer) {client.updateVariable(paintableId, "requestChildTree", true, false); }...
3.26
framework_VTree_getLastRootNode_rdh
/** * Returns the last root node of the tree or null if there are no root * nodes. * * @return The last root {@link TreeNode} */ protected TreeNode getLastRootNode() { if (f0.getWidgetCount() == 0) { return null; } return ((TreeNode) (f0.getWidget(f0.getWidgetCount() - 1))); ...
3.26
framework_VTree_isSelected_rdh
/** * Is a node selected in the tree. * * @param treeNode * The node to check * @return */ public boolean isSelected(TreeNode treeNode) { return selectedIds.contains(treeNode.key); }
3.26
framework_VTree_setFocused_rdh
/** * Is the node focused? * * @param focused * True if focused, false if not */ public void setFocused(boolean focused) { if ((!this.focused) && focused) { nodeCaptionDiv.addClassName(CLASSNAME_FOCUSED); this.focused = focused; if (BrowserInfo.get().isOpera()) { nodeCapti...
3.26
framework_VTree_m3_rdh
/** * For internal use only. May be removed or replaced in the future. */ public boolean m3() { return open; }
3.26
framework_VTree_nodeIsInBranch_rdh
/** * Examines the children of the branch node and returns true if a node is in * that branch * * @param node * The node to search for * @param branch * The branch to search in * @return True if found, false if not found */ private boolean nodeIsInBranch(TreeNode node, TreeNode branch) { if (node == br...
3.26
framework_VTree_getNextSibling_rdh
/** * Gets the next sibling in the tree * * @param node * The node to get the sibling for * @return The sibling node or null if the node is the last sibling */ private TreeNode getNextSibling(TreeNode node) { TreeNode parent = node.getParentNode(); List<TreeNode> children; if (parent == null) ...
3.26
framework_VTree_getRootNodes_rdh
/** * Returns a list of all root nodes in the Tree in the order they appear in * the tree. * * @return A list of all root {@link TreeNode}s. */ protected List<TreeNode> getRootNodes() { List<TreeNode> rootNodes = new ArrayList<TreeNode>(); for (int i = 0; i < f0.getWidgetCount(); i++) { rootNo...
3.26
framework_VTree_doRelationSelection_rdh
/** * Selects a range of items which are in direct relation with each * other.<br/> * NOTE: The start node <b>MUST</b> be before the end node! * * @param startNode * @param endNode */ private void doRelationSelection(TreeNode startNode, TreeNode endNode) { TreeNode currentNode = endNode; while (current...
3.26
framework_VTree_getNavigationSelectKey_rdh
/** * Get the key that selects an item in the table. By default it is the space * bar key but by overriding this you can change the key to whatever you * want. * * @return */ protected int getNavigationSelectKey() { return CHARCODE_SPACE; }
3.26
framework_VTree_getChildren_rdh
/** * Returns the children of the node. * * @return A set of tree nodes */ public List<TreeNode> getChildren() { List<TreeNode> nodes = new LinkedList<TreeNode>();if ((!isLeaf()) && isChildrenLoaded()) { for (Widget w : childNodeContainer) { TreeNode node = ((TreeNode) (w)); node...
3.26
framework_VTree_setHtml_rdh
/** * For internal use only. May be removed or replaced in the future. */ public void setHtml(String html) { nodeCaptionSpan.setInnerHTML(html); }
3.26
framework_VTree_handleClickSelection_rdh
/** * Handles mouse selection * * @param ctrl * Was the ctrl-key pressed * @param shift * Was the shift-key pressed * @return Returns true if event was handled, else false ...
3.26
framework_VTree_getNavigationEndKey_rdh
/** * Get the key the moves the selection to the end of the table. By default * this is the End key but by overriding this you can change the key to * whatever you want. * * @return */ protected int getNavigationEndKey() {return KeyCodes.KEY_END; }
3.26
framework_VTree_selectAllChildren_rdh
/** * Selects all the open children to a node * * @param node * The parent node */ private void selectAllChildren(TreeNode node, boolean includeRootNode) { if (includeRootNode) { node.setSelected(true); selectedIds.add(node.key); } for (TreeNode child : node.getChildren()) { ...
3.26
framework_VTree_handleKeyNavigation_rdh
/** * Handles the keyboard navigation. * * @param keycode * The keycode of the pressed key * @param ctrl * Was ctrl pressed * @param shift * Was shift pressed * @return Returns true if the key was handled, else false */ protected boolean handleKeyNavigation(int keycode, boolean ctrl, boolean shift) { ...
3.26
framework_VTree_deselectAll_rdh
/** * Deselects all items in the tree. */ public void deselectAll() { for (String key : selectedIds) { TreeNode node = keyToNode.get(key); if (node != null) { node.setSelected(false); } } selectedIds.clear(); selectionHasChanged = true; }
3.26
framework_VTree_deselectNode_rdh
/** * Deselects a node * * @param node * The node to deselect */private void deselectNode(TreeNode node) { node.setSelected(false); selectedIds.remove(node.key); selectionHasChanged = true; }
3.26
framework_VTree_getNavigationPageUpKey_rdh
/** * Get the key the moves the selection one page up in the table. By default * this is the Page Up key but by overriding this you can change the key to * whatever you want. * * @return */ protected int getNavigationPageUpKey() { return KeyCodes.KEY_PAGEUP; }
3.26
framework_VTree_m8_rdh
/** * Get the key the moves the selection to the beginning of the table. By * default this is the Home key but by overriding this you can change the * key to whatever you want. * * @return */ protected int m8() { return KeyCodes.KEY_HOME; }
3.26
framework_VTree_selectNodeRange_rdh
/** * Selects a range of nodes * * @param startNodeKey * The start node key * @param endNodeKey * The end node key */ private void selectNodeRange(String startNodeKey, String endNodeKey) { TreeNode startNode = keyToNode.get(...
3.26
framework_VTree_isGrandParentOf_rdh
/** * Travels up the hierarchy looking for this node. * * @param child * The child which grandparent this is or is not * @return True if this is a grandparent of the child node ...
3.26
framework_VTree_m4_rdh
/** * For internal use only. May be removed or replaced in the future. */ public void m4(String text) { DOM.setInnerText(nodeCaptionSpan, text); }
3.26
framework_VTree_sendSelectionToServer_rdh
/** * Sends the selection to the server */ private void sendSelectionToServer() { Command command = new Command() { @Override public void execute() { /* we should send selection to server immediately in 2 cases: 1) 'immediate' property of Tree is true 2) clickEventPending i...
3.26
framework_VTree_setFocusedNode_rdh
/** * Focuses a node and scrolls it into view. * * @param node * The node to focus */ public void setFocusedNode(TreeNode node) { setFocusedNode(node, true); }
3.26
framework_VTree_isCaptionElement_rdh
/** * Checks if the given element is the caption or the icon. * * @param target * The element to check * @return true if the element is the caption or the icon */ public boolean isCaptionElement(Element target) { return nodeCaptionSpan.isOrHasChild(target) || ((icon != null) && (target == icon.getElement())...
3.26
framework_VTree_getNavigationDownKey_rdh
/** * Get the key that moves the selection head downwards. 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_VTree_getFirstRootNode_rdh
/** * Returns the first root node of the tree or null if there are no root * nodes. * * @return The first root {@link TreeNode} */ protected TreeNode getFirstRootNode() { if (f0.getWidgetCount() == 0) { return null; } return ((TreeNode) (f0.getWidget(0))); }
3.26
framework_VTree_m9_rdh
/** * Tell LayoutManager that a layout is needed later for this VTree */ private void m9() { // This calls LayoutManager setNeedsMeasure and layoutNow Util.notifyParentOfSizeChange(this, false); }
3.26
framework_VTree_doSiblingSelection_rdh
/** * Selects a range of items which have the same parent. * * @param startNode * The start node * @param endNode * The end node */ private void doSiblingSelection(TreeNode startNode, TreeNode endNode) { TreeNode v65 = startNode.getParentNode(); List<TreeNode> children; if (v65 == null) { ...
3.26
framework_DDUtil_getVerticalDropLocation_rdh
/** * Get vertical drop location. * * @param element * the drop target element * @param offsetHeight * the height of an element relative to the layout * @param clientY * the y-coordinate of the latest event that relates to this drag * operation * @param topBottomRatio * the ratio that determines ho...
3.26
framework_DDUtil_getHorizontalDropLocation_rdh
/** * Get horizontal drop location. * * @param element * the drop target element * @param event * the latest {@link NativeEvent} that relates to this drag * operation * @param leftRightRatio * the ratio that determines how big portion of the element on * each end counts for indicating desire to drop...
3.26
framework_ColorChangeEvent_getColor_rdh
/** * Returns the new color. */ public Color getColor() { return f0; }
3.26
framework_LegacyApplicationUIProvider_getExistingUI_rdh
/** * Hack used to return existing LegacyWindow instances without regard for * out-of-sync problems. * * @param event * @return */ public UI getExistingUI(UIClassSelectionEvent event) { UI uiInstance = getUIInstance(event); if ((uiInstance == null) || (uiInstance.getUIId() == (-1))) { // Not initialized -> L...
3.26
framework_BrowserInfo_getWebkitVersion_rdh
/** * Returns the WebKit version if the browser is WebKit based. The WebKit * version returned is the major version e.g., 523. * * @return The WebKit version or -1 if the browser is not WebKit based */ public float getWebkitVersion() { if (!browserDetails.isWebKit()) {return -1; } return browserDetails...
3.26
framework_BrowserInfo_isIOS6_rdh
/** * Checks if the browser is run on iOS 6. * * @since 7.1.1 * @return true if the browser is run on iOS 6, false otherwise */ public boolean isIOS6() { return isIOS() && (getOperatingSystemMajorVersion() == 6); }
3.26
framework_BrowserInfo_getBrowserVersion_rdh
/** * Gets the complete browser version in form of a string. The version is * given by the browser through the user agent string and usually consists * of dot-separated numbers. Note that the string may contain characters * other than dots and digits. * * @return the complete browser version or {@code null} if un...
3.26
framework_BrowserInfo_getBrowserMinorVersion_rdh
/** * Returns the browser minor version e.g., 5 for Firefox 3.5. * * @see #getBrowserMajorVersion() * @return The minor version of the browser, or -1 if not known/parsed. */ public int getBrowserMinorVersion() { return browserDetails.getBrowserMinorVersion(); }
3.26
framework_BrowserInfo_isSafariOrIOS_rdh
/** * Returns true if the browser is Safari or is a browser that is running on * iOS and using the Safari rendering engine. * * @return true if the browser is using the Safari rendering engine * @since 8.1 */public boolean isSafariOrIOS() { return browserDetails.isSafariOrIOS(); }
3.26
framework_BrowserInfo_getBrowserMajorVersion_rdh
/** * Returns the browser major version e.g., 3 for Firefox 3.5, 4 for Chrome * 4, 8 for Internet Explorer 8. * <p> * Note that Internet Explorer 8 and newer will return the document mode so * IE8 rendering as IE7 will return 7. * </p> * * @return The major version of the browser. */ public int getBrowserMajor...
3.26
framework_BrowserInfo_getCSSClass_rdh
/** * Returns a string representing the browser in use, for use in CSS * classnames. The classnames will be space separated abbreviations, * optionally with a version appended. * * Abbreviations: Firefox: ff Internet Explorer: ie Safari: sa Opera: op * * Browsers that CSS-wise behave like each other will get the...
3.26
framework_BrowserInfo_get_rdh
/** * Singleton method to get BrowserInfo object. * * @return instance of BrowserInfo object */ public static BrowserInfo get() { if (instance == null) { instance = new BrowserInfo(); } return instance;}
3.26
framework_BrowserInfo_isTouchDevice_rdh
/** * * @return true if the browser runs on a touch based device. */ public boolean isTouchDevice() { return touchDevice; }
3.26
framework_BrowserInfo_getGeckoVersion_rdh
/** * Returns the Gecko version if the browser is Gecko based. The Gecko * version for Firefox 2 is 1.8 and 1.9 for Firefox 3. * * @return The Gecko version or -1 if the browser is not Gecko based */ public float getGeckoVersion() { if (!browserDetails.isGecko()) { return -1; } return browserDe...
3.26
framework_VDateField_setDate_rdh
/** * Sets the current date for this VDateField. * * @param date * The new date to use */ protected void setDate(Date date) { this.date = date; }
3.26
framework_VDateField_setCurrentLocale_rdh
/** * Sets the locale String. * * @param currentLocale * the new locale String. */ public void setCurrentLocale(String currentLocale) { this.currentLocale = currentLocale; }
3.26
framework_VDateField_getResolutionVariable_rdh
/** * Returns a resolution variable name for the given {@code resolution}. * * @param resolution * the given resolution * @return the resolution variable name */ public String getResolutionVariable(R resolution) { return resolution.name()...
3.26
framework_VDateField_setCurrentDate_rdh
/** * Set the current date using a map with date values. * <p> * The map contains integer representation of values per resolution. The * method should construct a date based on the map and set it via * {@link #setCurrentDate(Date)} * * @param dateValues * a map with date values to convert into a date */ publ...
3.26
framework_VDateField_getDefaultDate_rdh
/** * Sets the default date when no date is selected. * * @return the default date * @since 8.1.2 */ public Date getDefaultDate() { return defaultDate;}
3.26
framework_VDateField_getDate_rdh
/** * Returns a copy of the current date. Modifying the returned date will not * modify the value of this VDateField. Use {@link #setDate(Date)} to change * the current date. * <p> * For internal use only. May be removed or replaced in the future. * * @return A copy of the current date */ public Date getDate() ...
3.26
framework_VDateField_m0_rdh
/** * Sets the resolution. * * @param currentResolution * the new resolution */ public void m0(R currentResolution) { this.currentResolution = currentResolution; }
3.26
framework_VDateField_getCurrentLocale_rdh
/** * Returns the current locale String. * * @return the locale String */public String getCurrentLocale() { return currentLocale; }
3.26
framework_VDateField_getClient_rdh
/** * Returns the current application connection. * * @return the application connection */ public ApplicationConnection getClient() { return client; } /** * Returns whether ISO 8601 week numbers should be shown in the date * selector or not. ISO 8601 defines that a week always starts with a Monday * so th...
3.26