Changeset 292


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

Restored multicolumn searchresults

Location:
trunk/src/org/expeditee
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/agents/SearchAgent.java

    r291 r292  
    5050                String title = this.getClass().getSimpleName() + " [" + startName + "] [" + pattern
    5151                                + "]";
    52                 _results = new FrameCreator(resultsFrameset, null, title, false);
     52                _results = new FrameCreator(resultsFrameset, null, title, false, true);
    5353                // Set the frame to be displayed after running the agent
    5454                _end = _results.getFirstFrame();
  • trunk/src/org/expeditee/agents/SearchFrameset.java

    r291 r292  
    2121        protected Frame process(Frame frame) {
    2222                int count = FrameIO.getLastNumber(_startName);
    23                 for (long i = _firstFrame;i <= _maxFrame && i < count; i++) {
     23                for (long i = _firstFrame;i <= _maxFrame && i <= count; i++) {
    2424                        if (_stop) {
    2525                                break;
  • trunk/src/org/expeditee/agents/SearchFramesetFast.java

    r291 r292  
    3030               
    3131                int count = FrameIO.getLastNumber(_startName);
    32                 for (long i = _firstFrame;i <= _maxFrame && i < count; i++) {
     32                for (long i = _firstFrame;i <= _maxFrame && i <= count; i++) {
    3333                        if (_stop) {
    3434                                break;
  • trunk/src/org/expeditee/agents/SearchFramesetNoResults.java

    r291 r292  
    2727                String path = frame.path;
    2828                int count = FrameIO.getLastNumber(frame.getFramesetName());
    29                 for (long i = _firstFrame;i <= _maxFrame && i < count; i++) {
     29                for (long i = _firstFrame;i <= _maxFrame && i <= count; i++) {
    3030                        if (_stop) {
    3131                                break;
  • trunk/src/org/expeditee/agents/mail/MailSession.java

    r290 r292  
    464464                                        // Create a frameCreator
    465465                                        final FrameCreator frames = new FrameCreator(frame
    466                                                         .getFramesetName(), frame.path, subject, false);
     466                                                        .getFramesetName(), frame.path, subject, false, false);
    467467
    468468                                        frames.addText("@date: " + message.getSentDate(), null,
  • 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
  • trunk/src/org/expeditee/gui/MessageBay.java

    r284 r292  
    282282                if (_creator == null) {
    283283                        _creator = new FrameCreator(MESSAGES_FRAMESET_NAME,
    284                                         FrameIO.PROFILE_PATH, MESSAGES_FRAMESET_NAME, true);
     284                                        FrameIO.PROFILE_PATH, MESSAGES_FRAMESET_NAME, true, false);
    285285                }
    286286
Note: See TracChangeset for help on using the changeset viewer.