Custom layout trouble

I have created a custom layout to lay elements out in a especial way.
But I want to enable mouse wheel function. Let every element move like in the path when they are staticed.
I try to change the verticalScrollPosition or horizontalScrollPosition but the result is not what I imaged.
So should override some function to achieve that ?

I think you'll want to override getElementBoundsLeftOfScrollRect() etc.  This post has a code sample that does that: http://flexponential.com/2010/03/06/learn-how-to-create-a-simple-virtual-layout-in-flex-4/

Similar Messages

  • Absolute pôsitionning vs custom layout using custom constraints

    Hello,
    Context:*
    my team has developped a custom PlanningPanel that show a kind of time sheet or planning: this display shows "task" objects (which represent operations performed by industrial equipments) and "result" objects (which represent the products and byproducts of the operations).
    We needed rather simple edition functionalities, not a full-fledged Gantt-diagram (critical path highlighting, etc), so we dismissed trying to find a planning edition library and we went our own way.
    We decided on absolute positionning (null Layout). It was a lot of work, but has worked quite well, until recent maintenance caused some regressions, and proved a bit hard to evolve.
    I'm afraid I can't post an SSCCE; what I want to do in this thread is discuss alternatives (what other solutions did we have, or could we switch to). I may be spwaning dedicated forum threads to ask on specific issues.
    Requirements:*
    Display:
    - each task is on its own line (and the x axis represents the clock)
    - several tasks can have a common clock span (they are executed in parallel)
    - each task shows up as a rectangle
    - results shows as icons under their task
    - contextual tooltips are displayed when hovering over the tasks/results areas
    Edition:
    - the user can select a task, or a result (and edit a contextual form)
    - resize the rectangles (which edits the task duration)
    - move (drag and drop) a task, moving its results along (changes the start time and end time, or reorder lines for clarity)
    - define dependencies (so that one task's inputs are made of former tasks' results) as connecting lines.
    The system is also used to drive the task execution (generates command scripts for task-specific systems and spawns the adequate processes). The application provides a read-only view of the tasks in action (for monitoring purposes), which shows each task as a colored rectangle that fills up as the process advances
    - the monitoring view enable to select a task/result to open a detailed state view, or pause/resume a task
    - but the user can not add/delete/move anything
    - Both editor and monitor views are close enough so that we wanted to factor the layout code
    Design Choice(s):*
    The developper decided on absolute positionning across the whole panel.
    Thinking back, the lines could easily have been laid out in a GridLayout, but for the rest, it seemed a good option.
    Thinking further, here are the alternatives I may have proposed (the app is in production as of today, but it is still possible to rework the thing along the next version if it decreases maitenance costs).
    - initial thought: custom PlanningPanel with one big paint method. The paintComponent() would use the model to draw the appropriate rectangles on its Graphics2D.
    - the current solution: custom PlanningPanel with absolute positionning of children panels: the PlanningPanel has a null Layout, its children are TaskPanel and ResultPanel instances, which are positionned manually (+setBounds()+).
    - custom Panel with Renderers: there would be only one panel, whose paintComponent() method would use a couple of flyweight TaskRenderer and ResultRenderer.
    - custom LayoutManager: there would be only one regular JPanel, whose Layout would be a custom PlanningLayout, that knows how to translate TaskModel properties (start time, duration,...) into coordinates
    In all cases above the dependency lines are drawn in the main panel's paintComponent(). The lines could also have been empty non-opaque JPanels, laid out consistently, and overriding their paintComponent() that would simply draw the appropriate diagonal.
    In all cases, the coordinates are computed by custom code, based on the properties of the tasks, and the moderate complexity of this computing is the same in all cases, provided their is a handy mapping between each "widget" and its corresponding entity (+TaskModel+, ResultModel).
    The approaches merely differ in how they integrate with event and repaint handling.
    We considered the Renderer approach, but I was afraid it would complicate the interactions (DnD, resizing, click, even contextual tooltip), same thing for the big paint method approach.
    It still think the current model where each task and result is an instane of some subclass of JComponent is quite straightforward in this regard:
    theTaskPanel.addMouseListener(new MouseListener() {
        public void mouseClicked(...) {
            contextualFormArea.showFormForTask(theTaskPanel.getTaskId());
    });Moreover, both first two approaches would have made it harder to "optimize" the drawing (painting only the areas that need change).
    The current solution works nicely on these aspects. However it exhibits some erratic problems, such as:
    - some tasks are blank rectangles when the planning panel is scrolled within a JScrollPane, whereas the correct painting comes back when the window is resized.
    - sometimes the contextual tooltip shows another task's state
    What I haven't considered until that day is developping a custom LayoutManager. I naivley think this might correct the painting problems or at least isolate it, as it would separate the positionning and the "edition" codes (the custom PlanningPanel contains methods to add a task, create IDs, handle drop points,... and is a fairly big intimidating class.
    Indeed it seems this separation would be the main advantage of the custom LayoutManager.
    The painting code (filling rectangles, switching colors), is mostly separated already, in TaskPanel and ResultPanel.
    --> I am correct so far? Any other alternative? Any argument pro/against the custom LayoutManager approach?*
    In particular, is it worth the trouble to devise a custom Layoutmanager that has only two use cases?
    Edited by: jduprez on May 28, 2009 11:24 AM

    Thank you for following up (and forgiving my interference in your own thread).
    However I disagree with most of your arguments.
    What you described seems to fit with the Model-View-Controller pattern with some nice OOD thrown in :).Sorry, I don't understand this sentence.
    1) Constraint objects may be over-engineering the problemDesigning Constraint as Adapters may be a bit far-fetched, right, but I think designing Constraints helps in making the layout reusable (remember, the layout would be used to represent two sets of entities whose classes have no inheritance relationship).
    2) Use a Grid Layout if that makes life easier, otherwise use a custom layout. I mentioned GridLayout about vertically stacking "lines" of tasks, but a GridLayout sure doesn't fit putting task widgets of different width (duration) on a horizontal timeline.
    i think it may be more clean to simply override the size methods (min, max pref size, etc.) that the layout manager will call and calculate the desired size there (or have them call a method that does it and return that.) This way, each object knows how to provide its desired size instead of relying on some other [constraint] object to provide it.Thank you for this suggestion. This is an interesting point of view, I'll think more about it, but on first read it doesn't seem to fit for several reasons.
    - this assumes the object has all the information necessary to compute its, say, preferred size. That's not the case out of the box: there is this "scale factor", that currently is known by the container, and there's also the constraint that a task with results is drawn thinner so that the result icons fit underneath. You couldn't guess those constraints, and admittedly I could rework my TaskPanel so that it receives the missing info
    - I think it would go contrary to what a LayoutManager generally does. Think about GridLayout: each child component has no clue as to how big it will render. And the GridLayout silently ignores all desired (min/max/pref'd) sizes. The LayoutManager has all the info (the list of children, their desired sizes, additional constraints, and the layout-specific rules) and arbitrates between desired sizes, which are no more than suggestions.
    - In particular, I don't se what it brings to split "how big am I" and "where do I go" across two classes, especially since in my case both will essentially convert times or durations into numbers of pixels.
    - Eventually, I have two situations, with in particular two "duration-dependant widgets" (TaskDefinitionPanel and TaskExecutionPanel). Reusing the same layout logic (duration/width conversion included) forces them to share some code (be it to delegate to a common class).
    To summarize, put the "How big am I?" code in the over-ridden size methods, and the "where do I go?" code in the layout manager.I understand you refer to my specific situation (because this maxim, although it sounds well, is not a correct description of how standard LayoutManagers work). Thank you for the refreshing point of view, but I think I'll keep the size code out of the widget classes (they already contain the painting and event-handling logic).
    Thank you anyway. Regards.
    J.

  • Multi-Page Custom Layout?

    So it's kinda hard to think of a thread title that succinctly lays out what I'm having trouble with here.
    Basically, I'm wondering if it's possible to view a *SINGLE* page of a *MULTIPLE* page custom layout in the print module. It's quite possible I'm just retarded and am missing something simple, but when I add a page to the layout, it pops up in what is basically grid-view, with all the pages visible at once. Adding more pages just makes each page smaller. This is, obviously, not an ideal situation for doing layouts.
    So, am I missing some totally obvious way to fix this? The print module does single-page views when doing contact sheets and whatnot, so I know it's theoretically possible. Or is it not doable in custom package mode?

    There is a zoom page button on the preview pane at left top

  • Issue with creation of custom layouts using SAP Help Documentation

    Hi Experts,
    My requirement is to create a home custom page layout (using web dynpro) in Composite Environment. The default options available in CE are not useful for me. I set out to make a custom layout using the following this SAP Help Documentation: [          Creating a Web Dynpro Page Layout (SAP Library - Using the Portal as a Frontend)|https://cw.sdn.sap.com/cw/docs/DOC-102846]
    I have followed the instructions and followed all the steps, yet I fail to see the application in CE. The custom page layout is not displayed neither in options and is not available any where.
    Please let me know if anybody followed these steps and have got any success.
    Thanks in advance
    Srikant

    Hi
    Can somebody let me know if they have implemented a customised solution of creation of page layouts using Web Dynpro - as per the steps suggested by SAP.
    Thanks in advance
    Srikant

  • How to create a custom layout set to display the KM folders...

    Could someone please tell me how to create a custom layout set to display the KM folders?
    Thanks,
    Sudha.

    Hi Sudha,
    Please check the following blogs whick will guide you step by step.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4123
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3071
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/c91b5610b65b4aa8204d09384d156b/frameset.htm
    If helps reward points
    cheers
    dev

  • R12: PO Print report not accepting custom layout

    Hi All,
    PO Print report is not picking up the custom layout in R12.
    We have developed a custom layour ( .rtf).It works fine when run as a concurrent program.
    But if we follow the standard navigations ( Inquire/View document ) generates the standard report only.
    If any body has worked on similar type of issue anytime please let me know.
    Thanks in advance.
    Regards,
    Baldeep
    9880054721
    [email protected]

    We are using r12-12.1.1.
    Still this bug is not rectified(6806428). Oracle has taken up new Enhancement request 9264442.
    Funny that it will rectified in next version .
    This db flaw in india localization which doest allow to pick sum of each taxes.
    Edited by: |SN| on Jan 21, 2010 10:46 PM

  • How to force a Custom Layout in the links sent by e-mail ?

    Hi everyone,
    For customizing the final user´s view for Discussion Groups,
    I created a custom Layout Set "myDiscussionGroupsContributor"
    that references a custom Collection List Renderer
    "myDiscussionGroupWithoutTopicsContributorCollectionListRenderer"
    that references a custom Command "my_join_discussion_thread_contributor"
    that has a custom Layout Set assigned "mySingleDiscExplorerContributor".
    When accessing the discussions via the final users it works fine
    (I´ve already corrected the "Back" link problem acording thread
    problem with discussion group contributor iview)
    The problem is that when I send a discussion via e-mail
    to another user using the "send to" command,
    the received link opens the discussion using the default
    "DiscussionGroupsContributor", in fact, the e-mail´s HTML code
    contains the property "rndLayoutSet=SingleDiscExplorerContributor"
    as noted in the following href element:
    href="http://myportal:50000/irj/servlet/prt/portal/prtroot/
    com.sap.km.cm.navigation/discussiongroups/
    80b935d9-90a8-2810-17a6-c88c15fd350b/
    324e1175-98a8-2810-16a2-ee1c1f9c54bc.dsc?
    StartUri=/discussiongroups/80b935d9-90a8-2810-17a6-c88c15fd350b/
    324e1175-98a8-2810-16a2-ee1c1f9c54bc.dsc&
    rndLayoutSet=SingleDiscExplorerContributor&scHeight=300&
    scWidth=220&scPostListWidth=500" target=_blank
    The same happens with the link in the subscriptions list.
    Does anybody know how to set the layout in these links ?

    Hi all,
    I solved the problem, so here I post the steps for the solution I found.
    1) Modify the Object Type Definitions:
    In the CM Repository there is a folder root > etc > oth.
    There you have to change the LayoutSet settings in the following files
    (I don´t know if it is necessary to modify all of them):
         - discussion_post.oth
         - discussion_topic.oth
         - discussion.oth
         - discussiongroups_items.oth
         - discussionPostType.oth
         - discussionType.oth
         - dscGroupsCollType.oth
         - dscGroupsItemsType.oth
    2) Then you have to reload de OTH settings:
    In the Content Management configuration (System Administration >
    System Configuration > Content Management)
    go to User Interface > Debugging Settings and edit the configuration.
    Add your user id to "UI Superusers" then enable
    "Enable Rendering Information" and save.
    Then go to a KM and clic on "Rendering Information"
    (If the link doesn´t appear, refresh your window).
    A new window opens, clic in "OTH-Overview"
    and then in the new window click on "Reload".
    Finally close all popup windows and go to the
    Debugging Settings again to disable the checkbox
    "Enable Rendering Information"
    For further information you can read:
    http://help.sap.com/saphelp_nw04/helpdata/en/02/e4e25538f7274eb08b317751f2f04b/frameset.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/2c6b2089cc784bb384a7ea058de50d/frameset.htm
    I hope someone find this thread useful.
    Daniel Sacco

  • How do I create a placeholder image in a custom layout?

    I have a custom layout defined for a photo book, and I want to have a box on the layout where I can easily drag/drop a photo from Finder onto each page.
    On my layout, I created a shape and dropped an image into it. This results in the following tooltip on both the layout editor and on the pages using the layout:
    "This image is a placeholder. Drag a new media file here to replace it."
    And with that shape selected, if I go to Format, Advanced, the option "Define as Media Placeholder" *is* checked.
    But when I go to a page using this new layout and attempt to drag a JPEG file on top of the placeholder, a new photo is created on the page rather than replacing the placeholder. This means I have to go set the wrapping, size, placement, etc. of the photo with each page.
    What am I doing wrong?

    Good question. Just figured it out myself. I'm going to quote from http://www.davidebarranca.com/2012/04/ibooks-author-fullscreen-images/:
    In order to successfully transform a picture/movie within a master page into a placeholder you must select it, then 1) Format – Advanced – Define as Media Placeholder. 2) From the Inspector panel, select the Layout inspector and below Layout Object select the Editable on pages using this layout checkbox. If you forget this checkbox, the placeholder won’t work.

  • Grid with File Preview (custom layout) in Acrobat X Pro Portfolios

    In Acrobat 9 Pro, there was a Portfolio layout called Grid with File Preview. We use it as our primary layout for PDF portfolios because it allows users to rapidly view PDFs within a portfolio. This was our primary reason for using Portfolios. Unfortunately, this important feature was removed in Acrobat X Pro resulting in clunky and very slow PDF viewing within a portfolio.
    Is there a custom layout which emulates Grid with File Preview?
    Thanks in advance.

    PDF Portfolios arrived out of the blue with Acrobat 9 and have been somewhat of an experiment - Acrobat contains some to get you started, but by also releasing the SDK it was hoped that the Flex programming community would have provided an ecosystem to support Acrobat users who wanted more choice - so just as you can buy or download hundreds of  templates for websites, you could find them for Portfolios too.
    Unfortunately it hasn't happened, and the technological landscape  has changed dramatically in the past three years - the rise of HTML5, dominance of tablets/iOS, security concerns and  Adobe's repositioning of Flash in the marketplace have all affected the commercial viability of Flex as a career, and consequently the availability of free third-party Portfolio layouts. It would have been nice to see a vibrant community of people sharing their designs, but the reality is that the majority of custom PDF Portfolios are created for enterprises as part of their brand identity, and there is an obvious cost involved in hiring one of the small number of expert programmers (of which Joel Geraci is the #1) to do the work.
    Adobe has never claimed that the layouts which ship with Acrobat were the best/only way to do things - just as with the default presets in Lightroom, they're examples of what can be done. With Acrobat X it became easier for non-programmers to style the layouts (via Themes) but there's no escaping the basic fact that making a layout itself is a Flex programming job, and not one you'd attempt as your first chunk of code.
    When Acrobat 9 launched, I saw pretty equal levels of complaints that the bundled layouts were too boring and too flashy. The target was shifted in Acrobat X to a less corporate style, but again people loved and hated them in equal measure. Given how much work is involved in writing and testing each layout, you can't expect Adobe to release a version for everyone.
    There were legitimate  reasons why the bundled layouts from A9 weren't included in AX. Speaking personally I don't expect my assessment to change: Portfolios may stick around, they may not - it depends on a mountain of bigger questions about Web standards, device popularity, politics and economics which Adobe have no control over.

  • Custom Layout for FBL1N (Open Vendor Items)

    Hi All,
    I would like to create a custom layout for the List Output.  Currently there is only options as to display the Standard Local currency, I would like to include the value for the Document Currency (Transaction Currency) as well.  Does anyone have come across this before?  Thanks.
    Thanks.

    Hi,
    Creating a layout for any report is very easy.
    Go to TCODE FBL1N, in the output screen, below the menu options, you will find few buttons. you will find the button select layout, click on any one layout, and then click on the button select fields and copy the hidden fields from the select fields option,  add the fields you wish to add and then save the layout with a new name. Or you can also go through menu options - Settings ==> Special Fields - Include your special fields from the available tables. (This is cross client configuraiton)
    hope this helps
    regards,
    radhika

  • Customized layout and data of the standard PO print Document

    I have developed a customized purchase order with Oracle Reports RDF file (to generate the XML) and BI Publisher template. I registered my Publisher template with the Document Type "Standard Purchase Order". When I open the Purchase Order using PO Summary Form drop-down menu: Inquire -> View Document, it shows my customized layout but without any data.
    I wonder how do I set up so that my RDF file will be executed alongside to generate the data needed for the layout.
    Thanks,
    Mike

    Hey can you please reply if this is applicable for 11i also..

  • Search result category with a custom layout set?

    Greetings,
    I've created a nice little search IVIEW with a custom search options set that will display the document category (taxonomy) in the search result (if the resulting document is categorized, of course.)  Works great.  However there is one little problem.  The categories in the search results are hyperlinked and when you select one, you get a new window with the taxonomy rendered in the default layout set (the ConsumerExplorer I think.)  Not good.  I need this displayed in a custom layout set.
    Any ideas how to make this hyperlink use a custom layout set without changing the default?
    Regards,
    Paul Federighi

    Hi Paul,
    As per my knowledge of the basic s of layout sets and iviews.
    You want to change the layout set of the iview(window) which opens when u click the hyperlink.
    You should do this:
    1)Make a new layout set by customizing the default one.
    2)If the iview opening is a standard iview then go to its properties and change the Layout set value to ur new layout.
    Please revert in case of issues.
    I hope it helps.
    Regards,
    Sumit

  • Report with custom layout - formatting conditions

    Hi,
    There's a report with custom layout. What I need is to format some cells depending on the data they contain(like different background color). There's a tab named "Formatting Conditions" which should be meant for doing this and it works perfectly when report has tabular layout. But nothing happens in case of custom layout. Should this be done then in the "Report Layout Editor" and with Javascript? Portal version is 3.0.9.8.0.
    Thanks in advance,
    Madis

    Hi,
    Some condtions like background color do not work in custom mode reports. This is because in case of custom reports the table html is specified by the user and the report renderer has no control over it.
    Hope this helps.
    Sunil.

  • How to migrate Stellent 7.5.1 custom layout component to OCS 10gR3

    Hi,
    I am in the process of upgrading stellent 7.5.1 to OCS 10gR3. There is a custom layout component in 7.5.1 wanted to find out how can I migrate the layout component. As probably there are changes in 10gR3 so want to find out how to migrate the custom layout component and any changes required before migrating to 10gR3.
    Thanks.

    Hi
    am putting out the steps needed for upgrading an existing CS instance from version 7.5.1 to 10gR3. Its basically a 2 step process where we use Configuration Migration Utility to migrate the CS structure and Archiver to migrate the existing contents. The steps are as follows :
    1. Install a new CS 10gR3 instance on the server and configure it as per the install guide.
    2. Verify that the basic functionalities for the newly installed instance is working fine by doing some simple tests like checkin ,checkout , update etc. Then upgrade the CS to the latest patchset level which can be downloaded from http://updates.oracle.com/download/6907073.html.
    3. Install the latest version of Configuration Migration Utility component (which is found in the same uprgade patch set ) on both the 10gR3 CS (target) instance and the 7.5.1 CS (source).Enable them on both the CS instances and restart the same.
    4. Run the Configuration Migration Utility on the source CS and download the CMU Bundle created on it.
    5. Upload the CMU Bundle created in previous step to the Target CS and import the configurations from that.Verify that the CMU process is completed successfully on the Target CS instance.
    6. Create a new archiver instance on the Source CS and export all the contents in that.
    7. Open the Archiver Applet for the target CS instance and then Point the collections to the collections.hda of the source CS instance so that we can import the contents. Start the Import process on target server.
    8. Once the CMU and Archiver Process are completed then your 10gR3 CS would be an exact replica of the Source 7.5.1 Instance.
    You may also go through System Migration Guide to get more understanding on the Migration / Upgrade processes.
    Hope this helps
    Thanks
    Srinath

  • Problem to set the custom layout as the default layout in std. transaction

    Hi all,
    I want to change the standard layout that is displayed in a standard transaction (EL31) as default. I want few more fields of the structure also to be displayed in the default layout of the standard transaction. I have made a custom layout that i want to be displayed but cant make that layout as the default layout for all users. Please suggest me some way to make the custom layout as the default layout for a standard transaction.

Maybe you are looking for

  • Unable to renew Skype Number

    When I log into Skype, it tells me my number is about to expire. When I click on "Settings" to renew it, it simply tells me I have insufficient Skype funds (I don't). All it will allow me to do is "Update" my payment settings, even though it actually

  • Communication between J2ME MIDlet and J2SE server

    In my project I need to be able to exchange SMS messages between a J2ME MIDlet and a J2SE server? Is that possible? I tried the following: I included the CLDC, MIDP and WMA libraries in the classpath of my J2SE server and tried to use the wireless me

  • Message in result recording

    Hi friends, I am using upper & lower plausibility limit in MIC, while result recording for this MIC a warning message is issued when user enters value which is not in the defined range, now i want to convert this warning message to error message. The

  • Help with instances

    i am building a project that will manage a group of recordings. I Have a class 'Gui' which is used to display the current recording and i am trying to use the class 'addframe' to give the option to add a CD or Digital type of recording to the manager

  • Regular expressions and string matching

    Hi everyone, Here is my problem, I have a partially decrypted piece string which would appear something like. Partially deycrpted:     the?anage??esideshe?e Plain text:          themanagerresideshere So you can see that there are a few letter missing