Ignore:
Timestamp:
2008-12-26T14:35:15+13:00 (15 years ago)
Author:
kjdon
Message:

interface updated to display right to left for rtl languages. This code is thanks to Amin Hejazi. It seems to be only partially complete. Amin was working with Greenstone 3 so might have missed some panels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/branches/rtl-gli/src/org/greenstone/gatherer/gui/GComboBox.java

    r13195 r18297  
    6262    public GComboBox() {
    6363    super();
     64        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    6465    init();
    6566    setOpaque(!Utility.isMac());
     
    6869    public GComboBox(boolean editable) {
    6970    super();
     71        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    7072    setOpaque(!Utility.isMac());
    7173    setEditable(editable);
     
    7678    public GComboBox(ArrayList data) {
    7779    super(data.toArray());
     80        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    7881    setOpaque(!Utility.isMac());
    7982    init();
     
    8285    public GComboBox(ArrayList data, boolean editable) {
    8386    super(data.toArray());
     87        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    8488    setOpaque(!Utility.isMac());
    8589    setEditable(editable);
     
    8993    public GComboBox(ArrayList data, boolean editable, boolean sorted) {
    9094    super(data.toArray());
     95        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    9196    setOpaque(!Utility.isMac());
    9297    setEditable(editable);
     
    97102    public GComboBox(ComboBoxModel model) {
    98103    super(model);
     104        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    99105    setOpaque(!Utility.isMac());
    100106    init();
     
    103109    public GComboBox(ComboBoxModel model, boolean editable) {
    104110    super(model);
     111        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    105112    setOpaque(!Utility.isMac());
    106113    setEditable(editable);
     
    110117    public GComboBox(Object data[]) {
    111118    super(data);
     119        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    112120    setOpaque(!Utility.isMac());
    113121    init();
     
    116124    public GComboBox(Object data[], boolean editable) {
    117125    super(data);
     126        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    118127    setOpaque(!Utility.isMac());
    119128    setEditable(editable);
     
    123132    public GComboBox(Object data[], boolean editable, boolean sorted) {
    124133    super(data);
     134        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    125135    setOpaque(!Utility.isMac());
    126136    setEditable(editable);
     
    131141    public GComboBox(Vector data) {
    132142    super(data);
     143        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    133144    setOpaque(!Utility.isMac());
    134145    init();
     
    137148    public GComboBox(Vector data, boolean editable) {
    138149    super(data);
     150        this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    139151    setOpaque(!Utility.isMac());
    140152    setEditable(editable);
     
    320332        super("");
    321333        this.setOpaque(true);
     334            this.setComponentOrientation(org.greenstone.gatherer.Dictionary.getOrientation());
    322335    }
    323336    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
Note: See TracChangeset for help on using the changeset viewer.