Lines Matching defs:orientation
82 private int orientation = HORIZONTAL;
92 * vertical orientation.
94 * @param orientation an integer specifying
97 * @exception IllegalArgumentException if <code>orientation</code>
101 public JSeparator( int orientation )
103 checkOrientation( orientation );
104 this.orientation = orientation;
172 * Returns the orientation of this separator.
174 * @return The value of the orientation property, one of the
183 return this.orientation;
187 * Sets the orientation of the separator.
189 * @param orientation either <code>SwingConstants.HORIZONTAL</code>
191 * @exception IllegalArgumentException if <code>orientation</code>
203 * description: The orientation of the separator.
205 public void setOrientation( int orientation ) {
206 if (this.orientation == orientation) {
209 int oldValue = this.orientation;
210 checkOrientation( orientation );
211 this.orientation = orientation;
212 firePropertyChange("orientation", oldValue, orientation);
217 private void checkOrientation( int orientation )
219 switch ( orientation )
225 throw new IllegalArgumentException( "orientation must be one of: VERTICAL, HORIZONTAL" );
241 String orientationString = (orientation == HORIZONTAL ?
245 ",orientation=" + orientationString;