Ignore:
Timestamp:
07/14/08 10:05:43 (16 years ago)
Author:
ra33
Message:

Fixed a few problems with painting etc.. and finished search stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/Item.java

    r133 r137  
    175175
    176176                dest.setParent(source.getParent());
     177                dest._overlay = source._overlay;
    177178                dest._mode = source._mode;// SelectedMode.None;
    178179                dest._visible = source._visible;
     
    16961697        public void setHighlightMode(HighlightMode mode, Color color) {
    16971698                setHighlightColor(color);
    1698                 if (_mode != mode) {
    1699                         _mode = mode;
    1700                         this.invalidateCommonTrait(ItemAppearence.HighlightModeChanged);
     1699                if (hasPermission(Permission.followLinks)) {
     1700                        if (_mode != mode) {
     1701                                _mode = mode;
     1702                                this.invalidateCommonTrait(ItemAppearence.HighlightModeChanged);
     1703                        }
    17011704                }
    17021705        }
     
    18931896                return _actions != null && _actions.size() > 0;
    18941897        }
    1895        
     1898
    18961899        public void setAction(String action) {
    18971900                // Want to resize the highlight box for text items if actions are been
     
    19281931                boolean hasLink = getLink() != null;
    19291932                boolean hasAction = hasAction();
    1930                
     1933
    19311934                if (hasLink || hasAction) {
    19321935                        g.setStroke(HIGHLIGHT_STROKE);
Note: See TracChangeset for help on using the changeset viewer.