ActiveRichTextField: jump from link to link on navigation behavior
I use an ActiveRichTextField to make clickable links. However, if the user navigates through this field it's done character.
All I want is him to jump from link to link... Can I do this easily?
Or should I create a subclass and replace navigationMovement (.)?
I've actually already implemented it myself.
It does not entirely how I want it, but you get the idea
class JumpingActiveRichTextField extends ActiveRichTextField { ... private int currentRegion = 0; protected boolean navigationMovement(int dx, int dy, int status, int time) { int d = dx + dy; currentRegion += d; if(currentRegion < 0) { currentRegion = 0; return super.navigationMovement(dx, dy, status, time); } if(currentRegion!=0) { if(this.getText().startsWith("http://")) { if(currentRegion % 2 - 1 == 0) { currentRegion+=d; } } else { if(currentRegion % 2 == 0) { currentRegion+=d; } } } int[] offsets = this.getOffsets(); if(currentRegion >= offsets.length) { currentRegion = offsets.length - 1; return super.navigationMovement(dx, dy, status, time); } this.setCursorPosition(offsets[currentRegion]); String regText = this.getRegionText(currentRegion); if(dx>0 && currentRegion == offsets.length-1 && (regText==null || !this.getRegionText(currentRegion).startsWith("http://"))) { // do not jump to end but jump to next item return super.navigationMovement(dx, dy, status, time); } return true; } }
Tags: BlackBerry Developers
Similar Questions
-
Now, when I have a list of bookmark at the screen and I hit a link, the list disappears. So to jump from one web page to another, I must continue to do extra clicks for once more than the list of visible bookmarks. This wasn't true before. Is there a way to return to the previous situation, I found better?
The drop-down list of bookmarks is supposed to disappear when the user clicks on a link; also part of the display of the web page will be hidden behind the list...
Visible bookmarks on the left side of the screen at all times open the bookmarks bar. To open or close the'Sidebar Bookmarks use CTRL + B. If the sidebar is open when you exit Firefox, it should be open when you restart Firefox.
-
Should what message I to listen to know when a page is in jumps from the navigation pane
Hello
Is there a signal on the level of the page that will tell me when a page is in jumps from the navigation pane. I wish I could stop some it is made on the page when he jumped and no longer in background processing mode.
Where would I best handle this? I know that there is an onPopTransitionEnded on the navigation pane, but I would prefer to deal with in the qml file if possible...
Thank you
You can use the property on the page and Cisse inside the onPushTransitionEnded / onPopTransitionEnded
For example:Page{ property bool isActive: false onIsActiveChanged:{ If (isActive){ // start processing }else{ // stop processing } } .... }
And
onPushTransitionEnded: page.isActive = trueonPopTransitionEnded: page.isActive = false
-
Please someone send me link for navigation of the aggregation
Hello
can someone send me link aggregation navigation user guide...
Thank you to
HarishHi harish,
Follow these links, it gives you all the points and measures http://gerardnico.com/wiki/dat/obiee/fragmentationlevel_based_
http://www.rittmanmead.com/2006/11/01/aggregate-navigation-using-Oracle-BI-server/
http://www.rittmanmead.com/2007/10/26/using-the-OBIEE-aggregate-persistence-Wizard/Hope this helps you. Don't forget to award points.
By,.
KK -
Every three months or more, the drive letter for the backup drives jumps from one to another
I posted it here because there is no whole final forum for the Windows OS line. It is a problem that has been around since Microsoft made Windows XP and, frankly, I'm tired of it.
I have some backup players; one that I'm pretty much every day, whenever I have the machine and another every two weeks of use. I make sure they are always attached to a specific USB port so that the computer does not change in response. But still, every three months or so, the drive letter handling these jumps from one to the other. I run a Web site today and use a p2p Manager to transfer files to my machine, but most of them depend on the drive, so I could really do without what is happening every three months... all because your company won't repair it or provide an intuitive, ToolPart beginners' of the Windows operating system, forcing to keep a disk permanently assigned to the same letter.
I know that this is part of basic programming because it is something that Microsoft has simply been unwilling to identify and correct. I know also there are millions of people like me who suffer from this problem. For the love of God, please make this tool a priority for Windows 8 and build one for Windows 7/Vista!
* original title - your drive letter management is (Windows, all versions) *.I don't think that the USB ports are wired so that the computer OS is informed of the port which has been consulted.
I also doubt that you will get Microsoft to change at this point. As a solution, I give my readers a volume name, and so I don't know which drive is no matter which drive letter that has.
Steve
-
proplem to jump from one screen to another
Hello experts,
for a month, I'm on blackberry, but still I get a lot of problem...
in fact, the blackberry is not visible in the Simulator, if I write the code for jumping from one screen to another
can you post your code?
-
passing the parameter through links page (navigation)
Hello
suggest me the way to pass the parameter through links in the page navigation.
I tried it in EL, I'm not able to get on the page.
is it a right approach or any other.
Thank you
A
After showing the steps in the similar thread, I found this thread then re-post here.
Pass the connection parameter to connected in portal Builder page
Here are the steps to pass the parameter in a URL to another page:
- Add a custom attribute to the attributes of the current portal (say MyPortal1) page [link Direct: http://127.0.0.1:8888 / webcenter, portal, MyPortal1, attributes ]
OR
Sign in to your personalized Portal (say MyPortal1)
http://127.0.0.1:8888 / webcenter/Portal/MyPortal1
Click the settings (e.g. Pages & portals Actions)-> manage-> all settings
It will take you to the page view of all of the current portal (i.e. MyPortal1).
Then click attributes in the left pane, and you can create/edit/delete the custom attributes for the current portal on the right side.
- Click Add an attribute and specify the following information:
Attribute name = myvar
This is the attribute that we will refer to any page using the EL "MyVar".
Attribute value = #{param.myvarval}
"Myvarval" is the name of the query parameter (i.e. suffix query param & myvarval = TestSuccess will be passed as part of the URL later)
- Now, create a new page "TestPage" and add the element of HTML markup on the page using the composer.
- In the Properties window, change the HTML markup element.
Replace the existing value
#{componentExtensionBundle.OUTPUT_TEXT_TEXT}
with
#{spaceContext.currentSpace.metadata.customAttributes ['myvar']}
- Click apply and then click OK to close the pop-up window.
- Click on save and view Portal
- CHECK: Replace/change the URL the following OR open in a new tab in the browser
Http://127.0.0.1:8888 / webcenter, portal, MyPortal1, TestPage ? myvarval = TestSuccess
and you will see "TestSuccess' message in the"TestPage"rendered using the HTML markup component.
This confirms passing the parameter to a page URL works as expected.
Now, to add a link to the "TestPage" passing a parameter in the URL of the page in another page (Home Page say).
- Now goto homepage, correct it in composer and add the hyperlink element. Click change to set the hyperlink in the Properties window.
- Set the title to display (i.e. the value of the title TestPage)
- Set the Destination URL by clicking on the search icon and choose "TestPage".
Destination is defined with values that resembles
/faces/Oracle/WebCenter/page/scopedMD/sf5926dd1_9e6a_45ab_a99c_d79fabb362c0/Page1.JSPX
Add a suffix '& myvarval = TestWorks' to him.
- Click apply & OK.
- Click on save and view Portal
- CHECK: Since your home portal or the home page, click on the link "TestPage" which brings you to the TestPage and you will see "TestWorks' message in the"TestPage"rendered using the HTML markup component.
I hope it helps.
References:
How to pass a parameter of argument the query URL to a parameter input workflow? (Doc ID 1545808.1)
https://mosemp.us.Oracle.com/epmos/faces/DocumentDisplay?ID=1545808.1
Works with the global attributes in portals
http://docs.Oracle.com/CD/E29542_01/WebCenter.1111/e27738/wcadm_ps_attrib.htm#WCADM11701
-
ability to create multiple PDFs from links?
Acrobat Pro X, is there a way to apply the option 'create pdf file of the link' several links on the same website at the same time? Thank you
About the closest you can get is to use tools > Document Processing > Web Capture > add all links on the page control, which will go through the links and add to your existing PDF that has been captured from a web site.
-
Question as noted, sums it up. When I click on the mousewheel on a link in a tab, for I want a new tab open with that link and want it beside the tab, I clicked on the link in any as Firefox V3.6 has done. Firefox 8 is always open the new tab at the end of the list and boy is that embarrassing!
Please tell me how to solve this problem.
Define the Boolean browser.tabs.insertRelatedAfterCurrent true pref on the topic: config page.
To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.
If you see a warning then you can confirm that you want to access this page.- Use the filter at the top bar of the on: page config to more easily spot a preference.
- Preferences that have changed also show "BOLD" (user set).
- Preferences can be reset to the default value using the context menu if they are set of users
- Preferences can be changed via the context menu: Edit (string or integer) or toggle (Boolean)
-
several actions from linking single action
OBIEE 11.1.1.6
I have a column in an analysis that I had to put a link to action on the link to a Web site, it's something I can do. However the data returned in the column is one of the two types of Type A or B, if it is of type that I want to link to the Web site A and Type B I want to link to site B. I want to create a link simple action that is going to the site A or site b according to the values in the column. I can create an individual to either site has action link or B and add a condition, but I can't think how to add a unique action link that will dynamically to a Web site or the other based on the value of the column. Is this possible?
Published by: K Chumpski on November 27, 2012 07:05Hello
You can navigate to several links of action action unique bond based on the conditions...check if useful/correct...
Thank you
prassu -
Link not navigating column does not
Hi friends,
I'm on the process of creating link "Forgotten password" in the login page of my application.
By clicking on this link, please navigate to the page '121 '.
How I did appear this link on the page of connection means,
Because I created an article "display only" "P101_FORGOT_PASSWORD" and I gave it in the parameters of this issue has
Based on: the output of the pl/sql code
pl/sql code that emits an html: I gave the following
HTP.p (' < a href = "http://erpdev01.4iapps.com:7777 / pls/apex/f?") p = & APP_ID.:121: & SESSION. : & DEBUG. (":" > < /a > password ');
If I clicked on the "forgot password" on the login page, means, he must return to page 121.
But nothing happens when I click on 'Forgot password'.
Indeed all errors.
Thank you
Kind regards
MiniMini
Try to page 121 a "public page" that is, the page requires no authentication.
CITY
-
Thnx in advance
Hello
For more information on Microsoft Diagnostic fees, I suggest you to go through the help article and check.
Frequently asked questions about the tool Diagnostic Support of Microsoft (MSDT) when it is used with Windows 7 or Windows Server 2008 R2
http://support.Microsoft.com/kb/973559
I hope this helps.
-
Jump from a HP pavilion ze4560US
Hello
I have a HP pavilion ze4560US, perfectly functional until recently and despite his age.
Somehow, I can no longer start the computer. After turning on the machine, I get a screen of launch of HP, then a white screen. The only condition is to press F2, which leads to a series of menus that I don't know what to do with.
Any ideas on how to jump start my laptop?
See you soon,.
Alex
ASP is the authorized Service provider. Here is the link to help you find the nearest ASP:
http://h20465.www2.HP.com/GPL/search.aspx?language_code=en&country_code=us&SearchType=SSPThere are a few % chance of recovering the data. If the data is critical, there are specialists who will charge you more, but will recover the data.
-
IPad2 can jump from apps, return to the home screen
IPad2 keeps jumping by apps to return to the home screen. Have tried the suggestions and have visited Apple Store twice without success. Still do!
Hi Dsimonian,
Thank you for using communities Support from Apple!
I understand that when you are in some different applications on your iPad, you are taken back to the home screen unexpectedly.
Without knowing the previous steps, you're done, my suggestions will be to start with some basic troubleshooting. If this scenario plays in only a few different applications, I would first of all close applications completely by following the instructions in the following article.
Force an app to close iOS - Apple Support
Once these applications are closed, restart your iPad.
Restart your iPhone, iPad or iPod touch - Apple Support
If the problem persists, please let us know more about the troubleshooting steps you have already performed. This only happens with a specific application, multiple applications, or all your apps? How many times does that happen?
Best!
-
Navigate from a to an other navigation pane navigation pane
Hi all
In the navigation pane, we can spread one component to the next.
But what happens if I want to navigate from a navigation to another part of the navigation pane.
for example: -.
hand. QML: -.
ActionItem { title: qsTr ("ReadFromSD") imageSource: "asset:///images/action_addcontact.png" ActionBar.placement: ActionBarPlacement.OnBar onTriggered: { if (_addressBook.detectSD()) { var page = secondPageDefinition.createObject(); navigationPane.push(page); } } }
and the second page definition is like: -.
ComponentDefinition { id: secondPageDefinition source: "filePicker.qml" Page { Container { } paneProperties: NavigationPaneProperties { backButton: ActionItem { title: "Back" onTriggered: { /*username.text = ""; password.text = "";*/ navigationPane.pop(); } } } } }
The problem that is happening, is that the flow is not the trigger from one component to the other:
NavigationPane { id: navigationPaneFilePicker onPopTransitionEnded: page.destroy() Page { titleBar: TitleBar { title: qsTr ("Select contacts File") } Container { layout: DockLayout {} // The background image ImageView { horizontalAlignment: HorizontalAlignment.Fill verticalAlignment: VerticalAlignment.Fill imageSource: "asset:///images/background.png" } FilepickerScrollView { Container { horizontalAlignment: HorizontalAlignment.Fill verticalAlignment: VerticalAlignment.Fill ................................................ ...............................................
When I click the first page its not sailing does not to the second. When the second does not have the navigation pane it worked correctly, but as soon as I added the tag in navigation pane to it it stopped working
Please suggest
The element root firstPage.qml and secondPage.qml doesn't have to be a NavigationPane but a page element. You already have a navigationPane in your hierarchy of context and as a result, you can refer to your main QML file NavigationPane directly.
For example:
hand. QML:
include bb.cascades 1.3 NavigationPane { id: root Container { Button { text: "Push the first pane" onClicked: { var first = firstPane.createObject(); root.push(first); } } } attachedObjects: ComponentDefinition { id: firstPane source: "firstPage.qml" } }
firstPage.qml
include bb.cascades 1.3 id: navigationPane // The initial page Page { content: Container { Button { text: "Display First Page" onClicked: { var second= secondPage.createObject(); // Use the navigationPane defined in main.qml root.push(second); //pushes the defined component definition (first) } } } // end of Container attachedObjects: [ ComponentDefinition { id: secondPage source: "place the asset filepath to your secondPageQML here" } ] // end of attachedObjects list } // end of Page
Maybe you are looking for
-
How to create an array of items from the loop.
I have to get an array of elements obtained from the loop for so that I can use this table later in my program. When using range of table and cluster service arrayVI it gives only the last value generated in the loop. I want that all the values for e
-
I have a HP Pavilion a1340n, I replaced the motherboard with (motherboard MSI g31m3-f v2 model) but the fan made a thud, I have not problem with my pc it works fine but the fan noise is strong)
-
Windows XP Pro 32-bit update error code 0x80070005
Have seen the fix for Vista... need for XP
-
Today, outlook express téléchargerais not my mails. They come from BTyahoo that works normally. I checked all the settings that have not changed. What is the cause of the blocking
-
DSA files: I can't watch avd files from a dvd disc. How can I do this?
I can't look at avd files from a dvd disc. How can I do this