Class W3C.PICS.FilterCheckbox
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class W3C.PICS.FilterCheckbox

W3C.PICS.DCheckbox
   |
   +----W3C.PICS.FilterCheckbox

public class FilterCheckbox
extends DCheckbox
A Checkbox with built-in ranking. It will always make sure that all the higher-ranked (smaller rank number) checkboxes are checked and lower-ranked checkboxes are unchecked.

Constructor Index

 o FilterCheckbox(String, String, TextComponent, int, boolean, Vector, Vector)

Method Index

 o keyDown(Event, int)
This function is suitable for common categories that blocking a certain value usually implies blocking all larger values and allowing all smaller values.
 o setGroupState(boolean)
Used keyDown to get around the state==true test in setState()
 o setState(boolean)

Constructors

 o FilterCheckbox
  public FilterCheckbox(String label,
                        String Description,
                        TextComponent DText,
                        int rank,
                        boolean block,
                        Vector Checkboxes,
                        Vector TheOtherCheckboxes)

Methods

 o setState
  public void setState(boolean state)
 o keyDown
  public boolean keyDown(Event e,
                         int key)
This function is suitable for common categories that blocking a certain value usually implies blocking all larger values and allowing all smaller values. For example, categories in rcsa.rat Note: I should have used mouse right click instead. But java.awt.Componenet has a bug that right clicks are ignored.
 o setGroupState
  public void setGroupState(boolean state)
Used keyDown to get around the state==true test in setState()

All Packages  Class Hierarchy  This Package  Previous  Next  Index