ach
Interface ScrollComponent


public interface ScrollComponent

ScrollComponent.java
Copyright (C) 2000 Helge Hackbarth, All Rights Reserved
Interface for a Component like a Scrollbar that allows to implement a class used by class SmartScrollPane which is either based on java.awt.Scrollbar or javax.swing.JScrollBar.
THE AUTHOR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. THE AUTHOR SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.


Method Summary
 void disable()
           
 void enable()
           
 java.awt.Component getEmbeddedComponent()
          If a component implementing ScrollComponent is added to another container, the add method must use the embedded Scrollbar in order to use its peer.
 int getLineIncrement()
           
 int getMaximum()
           
 int getMinimum()
           
 java.awt.Dimension getMinimumSize()
           
 int getPageIncrement()
           
 java.awt.Dimension getPreferredSize()
           
 java.awt.Dimension getSize()
           
 int getValue()
           
 int getVisible()
           
 void hide()
           
 java.awt.Dimension minimumSize()
           
 java.awt.Dimension preferredSize()
           
 void setEnabled(boolean flag)
           
 void setLineIncrement(int value)
           
 void setPageIncrement(int value)
           
 void setValue(int value)
           
 void setValues(int newValue, int newExtent, int newMin, int newMax)
           
 void setVisible(boolean flag)
           
 void show()
           
 java.awt.Dimension size()
           
 

Method Detail

getEmbeddedComponent

public java.awt.Component getEmbeddedComponent()
If a component implementing ScrollComponent is added to another container, the add method must use the embedded Scrollbar in order to use its peer.
Example:
Container c = new Container(); TScrollBar tsb = new TScrollBar(1, 0, 10, 0, 100);
c.add(tsb.getEmbeddedComponent());


getLineIncrement

public int getLineIncrement()
See Also:
Scrollbar.getLineIncrement()

getPageIncrement

public int getPageIncrement()
See Also:
Scrollbar.getPageIncrement()

setPageIncrement

public void setPageIncrement(int value)
See Also:
Scrollbar.setPageIncrement(int value)

setLineIncrement

public void setLineIncrement(int value)
See Also:
Scrollbar.setLineIncrement(int value)

getVisible

public int getVisible()
See Also:
Scrollbar.getVisible()

getMaximum

public int getMaximum()
See Also:
Scrollbar.getMaximum()

getMinimum

public int getMinimum()
See Also:
Scrollbar.getMinimum()

getValue

public int getValue()
See Also:
Scrollbar.getValue()

setValue

public void setValue(int value)
See Also:
Scrollbar.setValue(int value)

setValues

public void setValues(int newValue,
                      int newExtent,
                      int newMin,
                      int newMax)
See Also:
Scrollbar.setValues(int newValue, int newExtent, int newMin, int newMax)

size

public java.awt.Dimension size()
See Also:
Component.size()

getSize

public java.awt.Dimension getSize()
See Also:
Component.getSize()

disable

public void disable()
See Also:
Component.disable()

enable

public void enable()
See Also:
Component.enable()

setEnabled

public void setEnabled(boolean flag)
See Also:
Component.setEnabled(boolean flag)

show

public void show()
See Also:
Component.show()

hide

public void hide()
See Also:
Component.hide()

setVisible

public void setVisible(boolean flag)
See Also:
Component.setVisible(boolean flag)

minimumSize

public java.awt.Dimension minimumSize()
See Also:
Component.minimumSize()

getMinimumSize

public java.awt.Dimension getMinimumSize()
See Also:
Component.getMinimumSize()

preferredSize

public java.awt.Dimension preferredSize()
See Also:
Component.preferredSize()

getPreferredSize

public java.awt.Dimension getPreferredSize()
See Also:
Component.getPreferredSize()