Multiple document application with tabbed view.

I'd like to write an application that is like the mdi in that it has multiple documents, but I want them to stay maximized. I'd like to switch between them with tabs. Do i really want to use the mdi? I get the idea that I'd be better off with a standard JFrame and a tab panel in the CENTER of a borderlayout.
Any suggestions?

I see that part of my problem is terminology. The term for exposing new windows is cascading. It is possible to tell a document's window controllers to cascade its windows when initializing an NSDocument subclass like this:
- (void) windowControllerDidLoadNib:(NSWindowController *) aController
[super windowControllerDidLoadNib: aController];
NSArray* myDocWindowControllers = [self windowControllers];
int numControllers = [myDocWindowControllers count];
unsigned int controllerNumber = 0;
while(controllerNumber < numControllers){
NSWindowController* theWindowController = [myDocWindowControllers objectAtIndex: controllerNumber];
[theWindowController setShouldCascadeWindows: YES];
controllerNumber ++;
}

Similar Messages

  • No staggered windows with XCode 3 in a Cocoa multiple document application

    I want to release a new version of an application that I developed using the Cocoa multiple document framework. With XCode 2.x when I opened new document windows they were staggered so that the user could see that there was more than one document open. Since I switched to XCode 3, new document windows are created at the same location on the screen and new ones cover the older ones. I liked the old way. I can't find anything about this in the documentation or release notes. Is this the new way to do this according to the Human Interface Guidelines or a bug or what?

    I see that part of my problem is terminology. The term for exposing new windows is cascading. It is possible to tell a document's window controllers to cascade its windows when initializing an NSDocument subclass like this:
    - (void) windowControllerDidLoadNib:(NSWindowController *) aController
    [super windowControllerDidLoadNib: aController];
    NSArray* myDocWindowControllers = [self windowControllers];
    int numControllers = [myDocWindowControllers count];
    unsigned int controllerNumber = 0;
    while(controllerNumber < numControllers){
    NSWindowController* theWindowController = [myDocWindowControllers objectAtIndex: controllerNumber];
    [theWindowController setShouldCascadeWindows: YES];
    controllerNumber ++;
    }

  • Display data from multiple document Libraries in List View Webpart

    Hi All,
    I want to display data from multiple document libraries into one list view webpart(custom i have created)
    I went through the following link http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
    but it tells to display only from one document library.
    My motive behind displaying data in the list view webpart is to achieve the functionality of Check In ,Check Out and other OOB features.
    With Regards,
    Jaskaran Singh

    Hi,
    As there is no such OOTB feature, a workaround is to create a visual web part to gather items from libraries and implement functionalities like Check in, Check out files
    in different libraries.
    The links below will provide more details:
    Create Visual Web Parts in SharePoint
    2010
    A demo about displaying list items in visual web part:
    http://www.dotnetcodesg.com/Article/UploadFile/2/217/Web%20Part%20in%20SharePoint%20To%20Show%20All%20List%20and%20List%20Items.aspx
    About the Check In and Check Out:
    How to Check In a document programmatically
    SPFile.CheckIn method
    and SPFile.CheckOut method
    Best regards
    Patrick Liang
    TechNet Community Support

  • Adding multiple pdf sheets with tabs

    Hello,
    I am working on our new product line and i have had some good help here.
    The last thing im working on is the quotation sheets. For each product we have a seperate quotation sheet in excel. We convert them to PDF and send them to the customer. I would like to convert all quotation sheets (15 in total) to PDF in a single document with a tab for each page. More or less the same as in excell with tabs at the bottom (or top, or side, that actually doesnt matter).
    I searched the forum and found something about wizztabs but i dont understand how it works...
    Regards,
    Rudi

    PDF files don't support tabs - you have two options:
    Place the sheets on separate pages, and use the Bookmarks feature to link to them (so you have text links on the sidebar). Assembly of a file like this can be automated.
    Place each sheet in a layer (OCG) within the PDF file. This cannot be automated (you would have to manually add each layer one at a time, by hand), and selecting between the layers will require you to add your own JavaScript code to the file as the sidebar doesn't work the way you want.

  • Suggestions for optimal solution to load application with dynaminc view

    Hi Experts,
    I have a Web service which is providing me data from database as well as data which will help to create UI of the view.
    In my view i have to ceate tabs in a tabstrip. Number of tabs are dynamic depending on data from web service. In each tab i have to create tables with dynamic columns and some additional text views and edits. Now, tabs and columns of tables, coming from web service are in random order and i need to sort the tabs and tables depending on values filled in a database table. this database table is like a configuration table.
    Creating view in a random order is done and for createing a sorted view i am planning to go with "bucket sort". Now my question here is as every thing is dynamic it will take lot of time for aplication to load which is not desired.
    I need your expert suggestions on how can i reduce the time view takes to Load entire application.
    Regards
    Pranav

    Hi Friend,
    There are may ways to optimize the performance of the application,
    First we need to concentrate on the basic web dynpro concepts like componentization. By implementing this concept we can achieve the gol. we need to know whether the monolithic component architecture or Multi component architecture which is suitable and the communication flow between them. More on this you can find here
    [Use components in bigger Web Dynpro projects (componentization) |http://wiki.sdn.sap.com/wiki/display/WDJava/UsecomponentsinbiggerWebDynproprojects+(componentization)]
    second you can check the proper implementation of the web DynPro hook methods. if this is done properly then most of the application flow will go very smoothly. there is one very good presentation available on this at SDN here
    http://www.sdn.sap.com/irj/scn/elearn;jsessionid=(J2EE3417200)ID0393138650DB00661116440296043375End?rid=/library/uuid/20e72f90-efea-2b10-0382-8dd420ee555e&overridelayout=true
    You should also check these link it will be very Helpful.
    [Best Practices for Optimizing Web Dynpro Java Application Performance|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/604ddc2f-ec9c-2b10-1682-be37e1c62dee?quicklink=index&overridelayout=true]
    [Best-Practices for Building State-of-the-Art Web Dynpro Java User Interfaces - Exercises|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50568365-ba9e-2b10-1188-a612a20edf31?quicklink=index&overridelayout=true]
    Regards
    Jeetendra

  • Keyboard accessibility, Captivate 8 - I cannot select multiple choice options with tab / enter.

    It seems that most information I can find is that it's a standard feature, and if you have the accessibility checkbox selected then it should work.  I'm viewing my quiz in HTML5 Chrome.  Tabs do not enter the answers, am I missing something obvious?

    I don't know if you resolved this yet... but I had the same problem. Eventually I realized that you have to TAB - SPACE BAR on the quiz slides. With the drop downs for filling in the blanks, it is TAB to, SPACE BAR, UP DOWN ARROW KEYS, ENTER. I am having to put instructions on the slide. Also, I'm having a nightmare with the tabbing on quiz slides, because for some reason it tabs on EVERYTHING on the slide, not just the interactive options. It even tabs the slide itself. I can't fix it... I've tried everything. I have it all perfect on everything but the quiz slides, then it loses focus. Also, for the fill in the blank quiz slides, it tabs to the selections all over the place. First it goes to question 1, then 6 then 3, then 2... and so on. As these don't show up in the tabable order feature, I can't fix that either.
    Sorry I just probably made it worse for you... but if you know of a fix for these other tabbing issues with quiz slides, please let me know.

  • When I open Safari multiple windows open with previously viewed websites

    For some reason since I upgraded to the OS X Lion and Safari 5.1, when I open Safari it opens up multiple windows with previously visited websites. When I close some sites they reopen again in another window. Why is this happening?

    How To Disable Lion's 'Resume' Feature - MacRumors.com

  • JProgressBar and ObserverPattern in multiple document app??

    Hi,
    I'm working on a multiple document application with jInternalFrames. There is one very time-consuming process and therefore I'd like to show a progressbar for the user to know, that the programm is still running.
    So Icreated a seperate internalFrame with a jProgressBar and I implemented the observer pattern.
    Now the problem is: my time-consuming process (which is in the observable-class) notifies the internalFrame whenever one percent of work is done,
    and the programm even enters the update method of the internal frame. In this update method i set the value of the
    progress bar, but nothing happens. I tried a repaint() and even a paintImmediately() but nothing happens until
    my time-consuming process is done. That's not exactly what i call a progressbar... ;-) It is even worse as the whole view of the application is faulty once I minimized and then resized the main window while my time-consuming process is running.
    So I already found some articles and I fear I have to work with threads. But how?
    can anyone explain to me what method I have to run as a thread and how can I refresh my internalFrame respectively the progressbar then?
    I hope anyone can help me...

    * Progress_Test.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Progress_Test extends JFrame {
        public Progress_Test() {
            initComponents();
        private void initComponents() {
            desktop = new JDesktopPane();
            internalFrame = new JInternalFrame();
            panel = new JPanel();
            progressBar = new JProgressBar();
            progressBar.setVisible(false);
            toolbar = new JToolBar();
            startBtn = new JButton();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setTitle("Test Progress");
            internalFrame.setPreferredSize(new Dimension(200, 100));
            internalFrame.setVisible(true);
            panel.add(progressBar);
            internalFrame.getContentPane().add(panel, BorderLayout.CENTER);
            startBtn.setText("Start");
            startBtn.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    startBtnActionPerformed(evt);
            toolbar.add(startBtn);
            internalFrame.getContentPane().add(toolbar, BorderLayout.NORTH);
            internalFrame.setBounds(0, 0, 200, 100);
            desktop.add(internalFrame, JLayeredPane.DEFAULT_LAYER);
            getContentPane().add(desktop, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-400)/2, (screenSize.height-300)/2, 400, 300);
        private void startBtnActionPerformed(ActionEvent evt) {
            if( ltThread == null || !ltThread.isAlive() ){
                progressBar.setValue(0);
                LongTask lt = new LongTask();
                ltThread = new Thread(lt);
                ltThread.start();
        public static void main(String args[]) {
            new Progress_Test().setVisible(true);
        private JDesktopPane desktop;
        private JInternalFrame internalFrame;
        private JPanel panel;
        private JProgressBar progressBar;
        private JButton startBtn;
        private JToolBar toolbar;
        private Thread ltThread;
        public class LongTask implements Runnable{
            public LongTask() {
                progressBar.setMaximum(max);
            public void run(){
                progressBar.setVisible(true);
                int n=0;
                while ( n<max ){
                    n++;
                    progressBar.setValue(n);
                    try{Thread.sleep(1000);}catch(Exception ex){}
                progressBar.setVisible(false);
            private int max=10;
    }

  • CS 4 Tabbed view and moving layers b/w documents

    I want to know if it's possible to select a layer from the layer palette start dragging it and move it to another open document while in tabbed view. It is possible when each document is in a separate window.
    I am on OS X 10.4.11 with CS 4 11.0.1
    Thanks.

    Great feature no need to drag and if you do not have to go to that document at the time of you layer export then you can continue to work in the current document without refocusing.
    Interesting feature and another argument as to why this is more efficient then a lot of open windows floating all around the place.
    I guess some users are missing out on a lot of advantages with this mind set about the old ways.
    BTW do any of you think there is a point where you can be working to fast and you end up making time consuming mistakes?
    I can see were speed is required if the process takes a log time or if it doesn't really take a long time it can always be as instantaneously as possible but isn't there a point in time when speed is a detriment.
    I am glad there are lot of users that think the tabs and application frame is a good thing.
    It has made my life so much easier with a less cluttered working method. Bravo Adobe.

  • Start and ADF Application with a non-View Task

    I would like my application to start with a non-View task from within Unbounded Task Flow.
    For example, I would like a single "Task Flow Call" in the Unbounded Task Flow which will call the first Bounded Task Flow. The first BTF will expose the main application page. The main application page will contain a dynamic region to handle all other bounded task flows.
    Is there a better task type to use than the Task Flow Call?
    Does the first task in an unbounded task flow need to be a view task?
    If so, is possible to simply use this page to redirect to a non-view task (such as a Task Flow Call)?
    Any ideas on the best approach for this? The point is that I do not want to start the application with a view task.
    Thanks,
    Vince

    Hi,
    you can't start with a non-view acticvity in an unbounded task flow. In your case I suggest to use a bounded task flow that you enable for browser access (property setting) and have it using JSPX pages. You don't need to start with a view in the unbounded task flow to achieve what you want
    Frank

  • Update to Acrobat 9.4.5 breaks selecting multiple document thumbnails

    After this update we can no longer select multiple document thumbnails with ctrl + right mouse click in the Pages view.  Our workaround is to uninstall and reinstall Acrobat 9 without any updates. 

    Already reported elsewhere on the Forum
    Thread ID 865843

  • Dymanic Parameters with a view, Report based on a proc

    I have a report that utilizes a SQL Server 2005 stored procedure with one input parameter (an integer).  The report runs fine, the parameter accepts input fine (ie. I can type in my integer input number and generate the report).  I want to create a dynamic parameter drop down list populating this parameter from a view in the same database with a list of ID (the input integer) and descriptions.
    I added the view with Database Expert, did NOT link the view and the procedure at all.  Edited the parameter, selected "dynamic", picked the ID field in the value column, the description field in the description column and clicked to create the parameter. 
    When I try to run the report, I get the error "Prompting failed with the following error message: "List of Values failure: fail to get values. [Cause of error: Database Connection Error: Database Vendor Code: 3621  Database Connection Error: 'Database Vendor Code: 515 ' UNKNOWN.RPT '
    Error Source: prompt.dll Error Code 0x8004380D
    This report runs only in the CR Desktop application (11.0) - it's not a client/Report Server setup.  I can connect to the database fine, I can even create and run a report of just my view of parameters. 
    What am I missing?
    Edited by: dcaparaso on Aug 13, 2011 4:01 AM

    Hi David, 
    I'm a bit confused on how you are getting the error.  Where does the error happen?  Is it in an application with the Viewer or from the Report Server? 
    I've run into the same error when scheduling a report in the report server.  Works fine in Crystal on my machine but after it's published it doesn't run. 
    I found the problem to be a difference between my version of Crystal and the version of the Report Server.  The Report Server was upgraded but my local version of Crystal wasn't. 
    Once I upgraded Crystal to match the version of the Report Server the reports were fine. 
    Good luck,
    Brian

  • IE script to open multiple tabs in quick tab view (control Q)

    First thanks Scripting Guys for all the great information provided by this forum!  I'm using Windows 7 Internet Explorer 8.  I'm looking for a VB Script that when lauched opens multiple webpages in one browser, so each page has it's own tab and
    I need it to open in Quick Tab view (control Q).  When users launch the script it will open a page with all the home pages visible.  Thanks for any help you guys provide.

    I did find some script that somewhat works, the position of the browser is messed up if I have other tabs open it will be added on, but I need it in a seperate browser, and I still need to change view to Quick Tab.
    '***This Browser Window Posistion***
    Option Explicit
    Dim navOpenInNewTab : navOpenInNewTab = &h0800
    Dim navOpenNewForegroundTab : navOpenNewForegroundTab = &h10000
    Dim surl : surl="http://www.yahoo.com"
    Dim sur2 : sur2="http://www.cnn.com"
    Dim count : count = 0
    Dim objIE : Set objIE = Wscript.CreateObject("InternetExplorer.Application","objIE_")
    objIE.Visible = True
    objIE.top = 0
    objIE.left = 1370
    objIE.Height = 770
    objIE.Width = 650
    '=======================================
    '***Open web tool Main Browser***
    objIE.Navigate surl
    Wscript.Sleep 2000
    objIE.navigate2 sur2, 2048
    Wscript.Sleep 2000

  • Multiple Instances of the Same Excel Document in 'Alt-Tab' List

    So I am having a very weird problem, and I can't seem to find an answer anywhere. I was recently given a new laptop at work with Windows 7 and Office 2010. It has worked pretty well so far, but recently I have been noticing something very strange. While
    this problem is quite small, due to how I use windows and my habits of alt-tabbing between multiple documents throughout the day, it is causing a serious problem.
    This typically only happens when I have multiple excel documents open, and am tabbing between them or other documents or windows. For example, I have ClientList.xlsx open and need to cut and paste a cell from it to FinalReview.xlsx. I have 'ClientList' open
    and just clicked Control+C to copy a cell. I click on 'Alt-tab' and while the icon in the alt tab list appears to change, I am taken immediately back to the same document. What is happening is that there are actually two separate copies of 'ClientList'
    in my alt tab list. If I press and hold 'Alt' and then hit 'tab' twice, I can pull up the other excel file, 'FinalReview'.
    At any point in time, I can click on the 'Alt' button to see the list and see three Excel icons. There will be one large excel icon with the name 'Microsoft Excel - ClientList.xlsx', and then right next to it will be two smaller looking excel icons with
    the names 'ClientList.xlsx' and 'FinalReview.xlsx' respectively.
    Has anyone seen anything like this before? I have spend hours searching for a resolution on the internet, as well as calling my work's tech support line and have not found anything remotely close to this as even being an issue.
    Thanks in advance for your help.

    Hi,
    First, I would like to verify whether this issue only occurred with Excel? Have you checked the Excel settings? You can perform a
    system restore to see how it works.
    In addition, I suggest you try the following:
    1. Test the issue in Clean Boot and
    Safe Mode
    2. Create a new user to test if this issue still exists.
    Thanks,
    Vincent Wang
    TechNet Community Support
    Mate, did you even bother to read the question? To mark your response as the answer is a complete load of garbage - you haven't even bothered to respond to the actual question. The correct answer is below from B.W._.
    No wonder anyone wanting decent responses uses stack overflow instead of these ridiculous forums...

  • How to count number of documents in a page with Tabs

    We have a page with Tabs and sub tabs for each Tab. There is no limit for the Tabs and Sub Tabs. I mean a Tab can have several child tabs and each child tab can have n number of Sub Tabs. We have documents laoded on Tab level and sub Tab level also.
    I want to display the count and size of the documents loaded on a page. That is If Page1 has 2 tabs and each tab has 2 sub tabs and on each sub tab there are 2 documents of 10 MB then I should be able to display like this.
    Page1 - number of documents: 8 , documents total size 80 MB.
    By linking documents table and apges table I am able to get the results by tab not by page.
    Any advice is appreciated.
    Thanks.
    Satya

    Hi Satya -
    It seems you should be able to get the information you are after in the "wwsbr_all_items" view. The folder_ID is the page ID. The content mangement views are documented here: http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1012/wwsbr_api_view.html%0A%0A#WWSBR_ALL_ITEMS
    Hope this helps,
    Candace

Maybe you are looking for