Searched defs:selectedIndex (Results 1 - 16 of 16) sorted by relevance

/openjdk7/jdk/test/javax/swing/JTabbedPane/6416920/
H A Dbug6416920.java73 public void padSelectedTab(int tabPlacement, int selectedIndex) { argument
74 super.padSelectedTab(tabPlacement, selectedIndex);
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaTabbedPaneContrastUI.java110 protected SegmentTrailingSeparator getSegmentTrailingSeparator(final int index, final int selectedIndex, final boolean isLeftToRight) { argument
111 if (isTabBeforeSelectedTab(index, selectedIndex, isLeftToRight)) return SegmentTrailingSeparator.NO;
115 protected SegmentLeadingSeparator getSegmentLeadingSeparator(final int index, final int selectedIndex, final boolean isLeftToRight) { argument
116 if (index == selectedIndex) return SegmentLeadingSeparator.YES;
H A DAquaListUI.java142 protected void repaintCell(final Object value, final int selectedIndex, final boolean selected) { argument
143 final Rectangle rowBounds = getCellBounds(list, selectedIndex, selectedIndex);
149 final Component rendererComponent = renderer.getListCellRendererComponent(list, value, selectedIndex, selected, true);
H A DAquaTabbedPaneTabState.java115 void relayoutForScrolling(final Rectangle[] rects, final int startX, final int startY, final int returnAt, final int selectedIndex, final boolean verticalTabRuns, final int tabCount, final boolean isLeftToRight) { argument
159 int right = selectedIndex;
160 int left = selectedIndex - 1;
167 } else if (selectedIndex < 0) {
H A DAquaTabbedPaneUI.java133 final int selectedIndex = tabPane.getSelectedIndex();
134 paintContentBorder(g, tabPlacement, selectedIndex);
146 paintScrollingTabs(g, clipRect, tabPlacement, selectedIndex, active, frameActive, isLeftToRight);
151 paintAllTabs(g, clipRect, tabPlacement, selectedIndex, active, frameActive, isLeftToRight);
154 protected void paintAllTabs(final Graphics g, final Rectangle clipRect, final int tabPlacement, final int selectedIndex, final boolean active, final boolean frameActive, final boolean isLeftToRight) { argument
157 if (i == selectedIndex) {
167 if (drawSelectedLast && rects[selectedIndex].intersects(clipRect)) {
168 paintTabNormal(g, tabPlacement, selectedIndex, active, frameActive, isLeftToRight);
172 protected void paintScrollingTabs(final Graphics g, final Rectangle clipRect, final int tabPlacement, final int selectedIndex, final boolean active, final boolean frameActive, final boolean isLeftToRight) { argument
186 if (realIndex != selectedIndex) {
491 getSegmentTrailingSeparator(final int index, final int selectedIndex, final boolean isLeftToRight) argument
495 getSegmentLeadingSeparator(final int index, final int selectedIndex, final boolean isLeftToRight) argument
499 isTabBeforeSelectedTab(final int index, final int selectedIndex, final boolean isLeftToRight) argument
629 paintContentBorder(final Graphics g, final int tabPlacement, final int selectedIndex) argument
[all...]
H A DAquaFileChooserUI.java1257 int selectedIndex = -1; field in class:AquaFileChooserUI.FilterComboBoxModel
1301 selectedIndex = this.indexOf(filter);
1310 if ((selectedIndex != -1) && (selectedIndex < size())) { return this.get(selectedIndex); }
H A DAquaTabbedPaneCopyFromBasicUI.java745 final int selectedIndex = tabPane.getSelectedIndex();
752 paintContentBorder(g, tabPlacement, selectedIndex);
758 paintTabArea(g, tabPlacement, selectedIndex);
761 paintContentBorder(g, tabPlacement, selectedIndex);
778 * @param selectedIndex the tab index of the selected component
782 protected void paintTabArea(final Graphics g, final int tabPlacement, final int selectedIndex) { argument
794 if (j != selectedIndex && rects[j].intersects(clipRect)) {
802 if (selectedIndex >= 0 && rects[selectedIndex].intersects(clipRect)) {
803 paintTab(g, tabPlacement, rects, selectedIndex, iconRec
1173 paintContentBorder(final Graphics g, final int tabPlacement, final int selectedIndex) argument
1233 paintContentBorderTopEdge(final Graphics g, final int tabPlacement, final int selectedIndex, final int x, final int y, final int w, final int h) argument
1256 paintContentBorderLeftEdge(final Graphics g, final int tabPlacement, final int selectedIndex, final int x, final int y, final int w, final int h) argument
1276 paintContentBorderBottomEdge(final Graphics g, final int tabPlacement, final int selectedIndex, final int x, final int y, final int w, final int h) argument
1304 paintContentBorderRightEdge(final Graphics g, final int tabPlacement, final int selectedIndex, final int x, final int y, final int w, final int h) argument
2674 padSelectedTab(final int tabPlacement, final int selectedIndex) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifTabbedPaneUI.java91 int selectedIndex,
93 Rectangle selRect = selectedIndex < 0? null :
94 getTabBounds(selectedIndex, calcRect);
100 if (tabPlacement != TOP || selectedIndex < 0 ||
114 int selectedIndex,
116 Rectangle selRect = selectedIndex < 0? null :
117 getTabBounds(selectedIndex, calcRect);
123 if (tabPlacement != BOTTOM || selectedIndex < 0 ||
136 int selectedIndex,
138 Rectangle selRect = selectedIndex <
90 paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument
113 paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument
135 paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsTabbedPaneUI.java121 protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex) { argument
154 super.paintContentBorder(g, tabPlacement, selectedIndex);
/openjdk7/jaxp/src/org/w3c/dom/html/
H A DHTMLSelectElement.java66 public void setSelectedIndex(int selectedIndex); argument
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalTabbedPaneUI.java127 int selectedIndex = tabPane.getSelectedIndex();
178 if (ocean && tabIndex - 1 == selectedIndex &&
180 tabPane.getTabCount(), selectedIndex)) {
214 if (ocean && tabIndex - 1 == selectedIndex &&
216 tabPane.getTabCount(), selectedIndex)) {
327 int selectedIndex = tabPane.getSelectedIndex();
339 return selectedIndex == i ? selectColor : getUnselectedBackgroundAt( i );
344 return selectedIndex == i ? selectColor : getUnselectedBackgroundAt( i );
940 int selectedIndex,
944 Rectangle selRect = selectedIndex <
939 paintContentBorderTopEdge( Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h ) argument
1011 paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument
1059 paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument
1101 paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DChoice.java93 int selectedIndex = -1; field in class:Choice
234 if (selectedIndex < 0 || selectedIndex >= index) {
336 /* Adjust selectedIndex if selected item was removed. */
338 selectedIndex = -1;
339 } else if (selectedIndex == position) {
341 } else if (selectedIndex > position) {
342 select(selectedIndex-1);
358 selectedIndex = -1;
372 return (selectedIndex >
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthTabbedPaneUI.java440 int selectedIndex = tabPane.getSelectedIndex();
483 selectedIndex, tabAreaBounds);
488 paintContentBorder(tabContentContext, g, tabPlacement, selectedIndex);
492 int selectedIndex) {
500 paintTabArea(tabAreaContext, g, tabPlacement, selectedIndex,
505 int tabPlacement, int selectedIndex,
514 if (tabAreaStatesMatchSelectedTab && selectedIndex >= 0) {
515 updateTabContext(selectedIndex, true, selectedTabIsPressed,
516 (getRolloverTab() == selectedIndex),
517 (getFocusIndex() == selectedIndex));
491 paintTabArea(Graphics g, int tabPlacement, int selectedIndex) argument
504 paintTabArea(SynthContext ss, Graphics g, int tabPlacement, int selectedIndex, Rectangle tabAreaBounds) argument
705 paintContentBorder(SynthContext ss, Graphics g, int tabPlacement, int selectedIndex) argument
[all...]
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXBaseMenuWindow.java73 private int selectedIndex = -1; field in class:XBaseMenuWindow
301 if (selectedIndex >= 0) {
302 if (items.size() > selectedIndex) {
303 return items.get(selectedIndex);
346 if (selectedIndex == index) {
348 } else if (selectedIndex > index) {
349 selectedIndex--;
388 if (this.selectedIndex != newSelectedIndex) {
390 log.finest("Selected index changed, was : " + this.selectedIndex + ", new : " + newSelectedIndex);
392 this.selectedIndex
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicComboPopup.java1133 * Sets the list selection index to the selectedIndex. This
1137 * @param selectedIndex the index to set the list
1139 private void setListSelection(int selectedIndex) { argument
1140 if ( selectedIndex == -1 ) {
1144 list.setSelectedIndex( selectedIndex );
1145 list.ensureIndexIsVisible( selectedIndex );
H A DBasicTabbedPaneUI.java784 int selectedIndex = tabPane.getSelectedIndex();
791 paintContentBorder(g, tabPlacement, selectedIndex);
797 paintTabArea(g, tabPlacement, selectedIndex);
800 paintContentBorder(g, tabPlacement, selectedIndex);
817 * @param selectedIndex the tab index of the selected component
821 protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { argument
834 if (j != selectedIndex && rects[j].intersects(clipRect)) {
842 if (selectedIndex >= 0 && rects[selectedIndex].intersects(clipRect)) {
843 paintTab(g, tabPlacement, rects, selectedIndex, iconRec
1260 paintContentBorder(Graphics g, int tabPlacement, int selectedIndex) argument
1322 paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument
1351 paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument
1377 paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument
1410 paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) argument
2845 padSelectedTab(int tabPlacement, int selectedIndex) argument
[all...]

Completed in 55 milliseconds