on 06-08-2005 10:45 PM
Hi, I'm trying to make the font size of a link 16px, how can I do this? I am trying:
Currently, I have:
<b><hbj:link
id="link1"
text="Link to google"
reference="http://www.google.com"
target="_TOP"
tooltip="this takes you to: http://www.google.com";
onClick="LinkClick">
<% link1.setFontSize(LinkFontSize.STANDARD);%>
</hbj:link></b>
But I would like the size of the font link to be 16px.
I see that there is a constructor available in the JavaDocs but it is protected, how would I be able to use it?
I'm a beginner in JSP and Java, so any examples, code, or suggestions are greatly appreciated!
Thanks so much!
Baggett.
You can't use the LinkFontSize to change the font size but you have an alternative. you could do the following. You can pass your text for your link in html text and set the encoding to false.
<b><hbj:link
id="link1"
text="<h1>Link to google</h1>"
reference="http://www.google.com"
target="_TOP"
tooltip="this takes you to: http://www.google.com";
onClick="LinkClick">
<% link1.getInnerText().setEncode(false);%>
</hbj:link></b>
PS: Please Post your question in one forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here are your answers.
1. setting the encode false allows to pass html tags with for your htmlb control description.
2. Button works differently. You should install PDK on your portal. You should look at the attributes of all your htmlbcontrols. This is how you setup encode = false for your button.
<hbj:button id="button1"
text="<span class='testClass'>Button 1</span>"
onClick="onInitialButtonClicked">
<% button1.setEncode(false);%>
</hbj:button>
How cud i Use EPCF's doNavigate to get the link's font and design??
something like this:
<hbj:link
id="link1"
text="Link to google"
<b>reference="return doNavigate("ROLES://......")"</b>
target="_TOP"
tooltip="Transactional Iview"
onClick="LinkClick">
<% link1.setFontSize(LinkFontSize.STANDARD);%>
</hbj:link>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.