Searched defs:element (Results 1 - 9 of 9) sorted by relevance

/solaris-userland-s11u3/components/visual-panels/core/src/java/util/com/oracle/solaris/vp/util/misc/
H A DStackUtil.java32 * Removes the given element if it is at the top of the given stack.
34 * @return {@code true} if the given element was removed, {@code false}
38 * the {@code Stackable} from which to remove {@code element}
40 * @param element
41 * the element to remove from {@code stack}
46 public static <E> boolean popIfAtTop(Stackable<E> stack, E element) { argument
48 if (ObjectUtil.equals(e, element)) {
H A DStackable.java43 * Gets the element at the top of the stack, or {@code null} if the stack
49 * Gets the element at the top of the stack. Equivalent to {@link
58 * Gets the {@code n}th element at the top of the stack.
70 * Removes the element at the top of the stack.
72 * @return the removed element
80 * Adds the given element to the stack.
82 void push(E element); argument
H A DXMLUtil.java32 public static String getTextContent(Element element) { argument
35 element.normalize();
36 NodeList children = element.getChildNodes();
61 public static String getAttribute(Element element, String name) { argument
62 String value = element.getAttribute(name);
67 "Element <%s> has no \"%s\" attribute", element, name));
70 public static boolean getBooleanAttribute(Element element, String name) { argument
71 return Boolean.parseBoolean(getAttribute(element, name));
74 public static int getIntegerAttribute(Element element, String name) { argument
75 return Integer.parseInt(getAttribute(element, nam
[all...]
H A DArrayUtil.java50 public static <T> boolean contains(T[] array, T element) { argument
51 return indexOf(array, element) != -1;
54 public static boolean contains(boolean[] array, boolean element) { argument
55 return indexOf(array, element) != -1;
58 public static boolean contains(byte[] array, byte element) { argument
59 return indexOf(array, element) != -1;
62 public static boolean contains(char[] array, char element) { argument
63 return indexOf(array, element) != -1;
66 public static boolean contains(double[] array, double element) { argument
67 return indexOf(array, element) !
70 contains(float[] array, float element) argument
74 contains(int[] array, int element) argument
78 contains(long[] array, long element) argument
82 contains(short[] array, short element) argument
96 indexOf(T[] array, T element) argument
105 indexOf(boolean[] array, boolean element) argument
114 indexOf(byte[] array, byte element) argument
123 indexOf(char[] array, char element) argument
132 indexOf(double[] array, double element) argument
141 indexOf(float[] array, float element) argument
150 indexOf(int[] array, int element) argument
159 indexOf(long[] array, long element) argument
168 indexOf(short[] array, short element) argument
[all...]
H A DHistoryList.java36 * When an element is added to the list, all elements from the current position
69 * Retrieves the element immediately before the position of the pointer, or
71 * this only returns the last element of the list if the pointer is at the
84 * Retrieves the element immediately before the position of the pointer.
85 * Note that this only returns the last element of the list if the pointer
106 * Removes the element immediately before the position of the pointer, and
109 * @return the element immediately before the position of the pointer,
129 * list, then adds the given element the list end of the list.
132 public void push(E element) { argument
134 data.add(element);
[all...]
/solaris-userland-s11u3/components/visual-panels/core/src/java/util/com/oracle/solaris/vp/util/swing/
H A DSortedListModel.java34 public void add(int index, Object element) { argument
H A DBreadCrumbs.java110 * Gets the last element of the model.
112 * @return the last element, or {@code null} if the model contains no
125 * Gets the last element of the model.
127 * @return the last element
143 T element = (T)model.get(size - 1 - n);
145 return element;
149 * Removes the last element of the model.
151 * @return the removed element
166 T element = (T)model.remove(size - 1);
168 return element;
175 push(T element) argument
327 toString(T element) argument
[all...]
/solaris-userland-s11u3/components/visual-panels/coreadm/src/java/vpanels/app/coreadm/com/oracle/solaris/vp/panels/coreadm/client/swing/path/
H A DPathDocument.java88 // If offset is in the middle of a token element, move it to the end
89 Element element = getCharacterElement(offset);
90 if (isToken(element)) {
91 offset = element.getStartOffset();
153 // element, remove the entire element
155 Element element = getCharacterElement(offset);
156 if (isToken(element)) {
157 int sOffset = element.getStartOffset();
164 element
241 isToken(Element element) argument
[all...]
/solaris-userland-s11u3/components/visual-panels/core/src/java/util/com/oracle/solaris/vp/util/swing/layout/
H A DAbstractTableLayout.java240 public void add(RowOrCol element) { argument
241 elements.add(element);
244 public void add(int i, RowOrCol element) { argument
245 elements.add(i, element);
275 for (RowOrCol element : elements) {
276 tSizes += element.getSize();
283 RowOrCol element = elements.remove(i);
284 if (element != null) {
285 element.remove();
313 RowOrCol element
[all...]

Completed in 1776 milliseconds