< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/synth/SynthContext.java
Print this page
*** 28,41 ****
import java.util.concurrent.ConcurrentLinkedQueue;
import javax.swing.JComponent;
/**
* An immutable transient object containing contextual information about
! * a <code>Region</code>. A <code>SynthContext</code> should only be
* considered valid for the duration
* of the method it is passed to. In other words you should not cache
! * a <code>SynthContext</code> that is passed to you and expect it to
* remain valid.
*
* @since 1.5
* @author Scott Violet
*/
--- 28,41 ----
import java.util.concurrent.ConcurrentLinkedQueue;
import javax.swing.JComponent;
/**
* An immutable transient object containing contextual information about
! * a {@code Region}. A {@code SynthContext} should only be
* considered valid for the duration
* of the method it is passed to. In other words you should not cache
! * a {@code SynthContext} that is passed to you and expect it to
* remain valid.
*
* @since 1.5
* @author Scott Violet
*/
*** 107,117 ****
public Region getRegion() {
return region;
}
/**
! * A convenience method for <code>getRegion().isSubregion()</code>.
*/
boolean isSubregion() {
return getRegion().isSubregion();
}
--- 107,117 ----
public Region getRegion() {
return region;
}
/**
! * A convenience method for {@code getRegion().isSubregion()}.
*/
boolean isSubregion() {
return getRegion().isSubregion();
}
*** 132,145 ****
this.state = state;
}
/**
* Returns the state of the widget, which is a bitmask of the
! * values defined in <code>SynthConstants</code>. A region will at least
* be in one of
! * <code>ENABLED</code>, <code>MOUSE_OVER</code>, <code>PRESSED</code>
! * or <code>DISABLED</code>.
*
* @see SynthConstants
* @return State of Component
*/
public int getComponentState() {
--- 132,145 ----
this.state = state;
}
/**
* Returns the state of the widget, which is a bitmask of the
! * values defined in {@code SynthConstants}. A region will at least
* be in one of
! * {@code ENABLED}, {@code MOUSE_OVER}, {@code PRESSED}
! * or {@code DISABLED}.
*
* @see SynthConstants
* @return State of Component
*/
public int getComponentState() {
< prev index next >