Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.ui.search
Class SearchFieldBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by oracle.javatools.ui.search.SearchFieldBorder

All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public final class SearchFieldBorder
extends javax.swing.border.AbstractBorder

A custom border used for a search field.

Since:
11.0
See Also:
Serialized Form

Constructor Summary
SearchFieldBorder()
           

 

Method Summary
 java.awt.Color getBackground()
          Returns the color of the background.
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
           
 java.awt.Color getForeground()
          Returns the color of the foreground.
 boolean isBorderOpaque()
           
static void main(java.lang.String[] args)
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 void setBackground(java.awt.Color background)
          Sets the color of the background.
 void setForeground(java.awt.Color foreground)
          Sets the foreground color.

 

Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SearchFieldBorder

public SearchFieldBorder()

Method Detail

setForeground

public void setForeground(java.awt.Color foreground)
Sets the foreground color.
Parameters:
foreground - the color of the foreground. Must not be null.

getForeground

public java.awt.Color getForeground()
Returns the color of the foreground.
Returns:
the color of the foreground.

setBackground

public void setBackground(java.awt.Color background)
Sets the color of the background.
Parameters:
background - the background color. Must not be null.

getBackground

public java.awt.Color getBackground()
Returns the color of the background.
Returns:
the background color. Must not be null.

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.AbstractBorder

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Specified by:
getBorderInsets in interface javax.swing.border.Border
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets insets)
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border
Overrides:
isBorderOpaque in class javax.swing.border.AbstractBorder

main

public static void main(java.lang.String[] args)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.