Ignore:
Timestamp:
09/03/08 14:43:49 (16 years ago)
Author:
ra33
Message:

Restored multicolumn searchresults

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameCreator.java

    r284 r292  
    3535        private Frame _firstFrame;
    3636
     37        private boolean _multiColumn;
     38
    3739        public FrameCreator(String frameTitle) {
    3840                this(DisplayIO.getCurrentFrame().getFramesetName(), DisplayIO
    39                                 .getCurrentFrame().path, frameTitle, false);
     41                                .getCurrentFrame().path, frameTitle, false, false);
    4042        }
    4143
     
    8183
    8284        public FrameCreator(String name, String path, String frameTitle,
    83                         boolean recreate) {
    84 
     85                        boolean recreate, boolean multiColumn) {
     86                _multiColumn = multiColumn;
    8587                _Mnext = createButton("@Next", null, null, 10F, 15F);
    8688
     
    178180                                // if there is no more room on the X axis, we have to start a
    179181                                // new frame
    180                                 // if (toAdd.getBoundsWidth() + _lastX > FrameGraphics
    181                                 // .getMaxSize().width) {
    182                                 // Make sure text items that are created on the current
    183                                 // frame are removed
    184                                 _current.removeItem(toAdd);
    185                                 createNextFrame();
    186                                 // }
     182                                if (!_multiColumn || toAdd.getBoundsWidth() + _lastX > FrameGraphics
     183                                                .getMaxSize().width) {
     184                                        // Make sure text items that are created on the current
     185                                        // frame are removed
     186                                        _current.removeItem(toAdd);
     187                                        createNextFrame();
     188                                }
    187189                        }
    188190
Note: See TracChangeset for help on using the changeset viewer.