Creating new Tags with HTMLEditorKit

Hello,
I have an HTMLEditorKit and I want it to recognize the HTML tags + some new tags I've created (which contains some attributes).
1. Is it possible ?
2. How ?
I've read the API, and found something about an HTML parser and a SGML DTD. There's a mthode like defElement(String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, String[] exclusions, String[] inclusions, AttributeList atts) but I can't find any example how to use it. And I don't know if it's really the best way to do so.
I'm not using XML because I need to have, in the same document, the bold, italic, table, etc tags, and my new tags. And some are overlapping... (like <b>aa<tag>ccc</b>ggg</tag> )
Bastet

Overlapping of tags is a really bad thing to do. There is also no need to do it.
<b>Some bold<i> some bold Italic</b> some Italic</i> is -bad-. Better to do the following as it is much clearer and also correct.
<b>Some bold<i> some bold Italic</i></b><i> some Italic</i>.
As for the rest, search on google for the method call, find a book on the subject.

Similar Messages

  • Creating new Tags with HTMLEditorKit and painting tag

    hello,
    I am trying to make a simple modification to HTMLEditorKit so that I can implement a custom tag eg TFONT a font that has transparency capabilities.
    I have overriden javax.swing.text.html.parser.ParserDelegator class and am able to detect the tags but I need to implement the tag. Basically I want a way to render text that is partly transparent (like the css3 opaque attribute)
    Therefore I want to paint my tag, but I am not sure how to override HTMLEditorKit for ViewFactory, in order to create my own View class for this tag. A simple example wwould be great.
    Thanks
    greg

    Overlapping of tags is a really bad thing to do. There is also no need to do it.
    <b>Some bold<i> some bold Italic</b> some Italic</i> is -bad-. Better to do the following as it is much clearer and also correct.
    <b>Some bold<i> some bold Italic</i></b><i> some Italic</i>.
    As for the rest, search on google for the method call, find a book on the subject.

  • Creating new tags slow in Mac OS Yosemite

    Hi
    I have been finding creating new tags in Mac OS X Yosemite to be really slow. Whilst it was slow in Mavericks, it really is taking a lot of time now. Using previously created tags is not a problem.
    Has anybody else found this, and a solution for it?
    With Thanks

    My searching on this issue, which I had too, lead me to a solution. The problem is described and the solution outlined in the following posting:
         http://apple.stackexchange.com/questions/146322/creating-and-modifying-tags-hang s-finder-in-os-x-10-9-mavericks
    I think the issue isn't just in Yosemite, but seems to have got worse with that upgrade, but this fix worked for me, and it might for you too.

  • HT204088 Dear sirs,  Could you please help me on my problem with my apple ID  I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,  My account have 50$ and stil

    Dear sirs,
    Could you please help me on my problem with my apple ID
    I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,
    My account have 50$ and still didn't buy anything

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (100546)

  • Error while trying to create new assignment with supervisor through API

    Hi Experts,
    I'am trying to create new assignment with supervisor for employee, but i'am facing this error:
    =============================================================
    ORA-20008: Error While Create new assignment..-20001
    ORA-20001: The supervisor assignment that you have entered is invalid.
    Please check that you have entered the supervisor,
    that the supervisor assignment belongs to this supervisor and that the assignment is effective.
    ORA-06512: at line 198
    =============================================================
    This is my script, (Oracle EBS 12.1.1)(DB 11):
    DECLARE
    v_user_id NUMBER;
    v_res_id NUMBER;
    v_res_appl_id NUMBER;
    v_org_now_no_manager_warning BOOLEAN;
    v_spp_delete_warning BOOLEAN;
    v_other_manager_warning BOOLEAN;
    v_tax_district_changed_warning BOOLEAN;
    v_entries_changed_warning VARCHAR(4000);
    v_person_id per_all_assignments_f.person_id %TYPE;
    v_business_group_id hr_all_organization_units_tl.organization_id %TYPE;
    v_people_group_id per_all_assignments_f.people_group_id %TYPE;
    v_object_version_number per_all_assignments_f.object_version_number %TYPE;
    v_special_ceiling_step_id per_all_assignments_f.special_ceiling_step_id %TYPE;
    v_group_name pay_people_groups.group_name %TYPE;
    v_ass_effective_start_date per_all_assignments_f.effective_start_date %TYPE;
    v_effective_start_date per_all_assignments_f.effective_start_date %TYPE;
    v_effective_end_date per_all_assignments_f.effective_end_date %TYPE;
    v_assignment_id per_all_assignments_f.assignment_id %TYPE;
    v_sup_assignment_id per_all_assignments_f.assignment_id %TYPE;
    v_supervisor_assignment_id per_all_assignments_f.assignment_id %TYPE;
    v_job_id per_jobs.job_id %TYPE;
    v_grade_id per_grades.grade_id %TYPE;
    v_location_id hr_locations_all.location_id %TYPE;
    v_payroll_id pay_all_payrolls_f.payroll_id %TYPE;
    v_pay_basis_id per_pay_bases.pay_basis_id %TYPE;
    BEGIN
    v_user_id := FND_GLOBAL.user_id ;
    v_res_id := FND_GLOBAL.resp_id ;
    v_res_appl_id:= FND_GLOBAL.resp_appl_id;
    FND_GLOBAL.apps_initialize(v_user_id, v_res_id, v_res_appl_id);
    BEGIN
    SELECT organization_id
    INTO v_business_group_id
    FROM hr_all_organization_units_tl
    WHERE name = 'Vision University'
    AND language = 'US';
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20000,'Error While Retrieving (Business Group ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    FOR R IN (SELECT * FROM xx_assignment) LOOP
    BEGIN
    SELECT assignment_id , ass_f.object_version_number
    INTO v_assignment_id , v_object_version_number
    FROM per_all_assignments_f ass_f, per_all_people_f p_f
    WHERE ass_f.person_id = p_f.person_id
    AND ass_f.business_group_id = p_f.business_group_id
    AND ass_f.business_group_id = v_business_group_id
    AND p_f.employee_number = R.employee_number
    AND TRUNC(p_f.effective_start_date)= TRUNC(ass_f.effective_start_date)
    AND TRUNC(p_f.effective_end_date) = TRUNC(ass_f.effective_end_date);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20001,'Error While Retrieving (Assignmet_ID) for employee..'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT job_id
    INTO v_job_id
    FROM per_jobs
    WHERE trim(lower(name)) = trim(lower(r.employee_job))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20002,'Error While Retrieving (Job_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT grade_id
    INTO v_grade_id
    FROM per_grades
    WHERE trim(lower(name)) = trim(lower(r.employee_grade))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20003,'Error While Retrieving (Grade_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT location_id
    INTO v_location_id
    FROM hr_locations_all
    WHERE trim(lower(description))= trim(lower(r.employee_location))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20004,'Error While Retrieving (Location_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT payroll_id
    INTO v_payroll_id
    FROM pay_all_payrolls_f
    WHERE trim(lower(payroll_name)) = trim(lower(r.payroll_name))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20005,'Error While Retrieving (Payroll_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT pay_basis_id
    INTO v_pay_basis_id
    FROM per_pay_bases
    WHERE trim(lower(pay_basis)) = trim(lower(r.pay_basis))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20006,'Error While Retrieving (Pay_Basis_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT person_id
    INTO v_person_id
    FROM per_all_people_f
    WHERE employee_number = r.supervisor_number
    AND business_group_id= v_business_group_id;
    SELECT assignment_id
    INTO v_sup_assignment_id
    FROM per_all_assignments_f
    WHERE person_id = v_person_id
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20007,'Error While Retrieving (Assignmet_ID) for supervisor..'||SQLCODE||' '||SQLERRM);
    end;
    BEGIN
    hr_assignment_api.update_emp_asg_criteria(p_effective_date => TRUNC(SYSDATE),
    p_datetrack_update_mode => 'CORRECTION',
    p_assignment_id => v_assignment_id,
    p_validate => FALSE,
    p_called_from_mass_update => NULL,
    p_grade_id => v_grade_id,
    p_position_id => NULL,
    p_job_id => v_job_id,
    p_payroll_id => null,--v_payroll_id,
    p_location_id => v_location_id,
    p_organization_id => v_business_group_id,
    p_pay_basis_id => v_pay_basis_id,
    p_segment1 => NULL,
    p_segment2 => NULL,
    p_segment3 => NULL,
    p_segment4 => NULL,
    p_segment5 => NULL,
    p_segment6 => NULL,
    p_segment7 => NULL,
    p_segment8 => NULL,
    p_segment9 => NULL,
    p_segment10 => NULL,
    p_segment11 => NULL,
    p_segment12 => NULL,
    p_segment13 => NULL,
    p_segment14 => NULL,
    p_segment15 => NULL,
    p_segment16 => NULL,
    p_segment17 => NULL,
    p_segment18 => NULL,
    p_segment19 => NULL,
    p_segment20 => NULL,
    p_segment21 => NULL,
    p_segment22 => NULL,
    p_segment23 => NULL,
    p_segment24 => NULL,
    p_segment25 => NULL,
    p_segment26 => NULL,
    p_segment27 => NULL,
    p_segment28 => NULL,
    p_segment29 => NULL,
    p_segment30 => NULL,
    p_employment_category => NULL,
    p_concat_segments => NULL,
    p_grade_ladder_pgm_id => NULL,
    p_supervisor_assignment_id => v_sup_assignment_id,
    p_people_group_id => v_people_group_id,
    p_object_version_number => v_object_version_number,
    p_special_ceiling_step_id => v_special_ceiling_step_id,
    p_group_name => v_group_name,
    p_effective_start_date => v_ass_effective_start_date,
    p_effective_end_date => v_effective_end_date,
    p_org_now_no_manager_warning => v_org_now_no_manager_warning ,
    p_spp_delete_warning => v_spp_delete_warning,
    p_entries_changed_warning => v_entries_changed_warning,
    p_tax_district_changed_warning => v_tax_district_changed_warning,
    p_other_manager_warning => v_other_manager_warning);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20008,'Error While Create new assignment..'||SQLCODE||' '||SQLERRM);
    END;
    END LOOP;
    COMMIT;
    END;
    Thank you & Best Regards

    I think this is essentially saying that the Supervisor Assignment is wrong or no longer effective. Looking at your SQL to fetch the Supervisor Assignment there are a number of potential issues. This is what you've currently got:
    SELECT person_id
    INTO v_person_id
    FROM per_all_people_f
    WHERE employee_number = r.supervisor_number
    AND business_group_id= v_business_group_id;
    SELECT assignment_id
    INTO v_sup_assignment_id
    FROM per_all_assignments_f
    WHERE person_id = v_person_id
    AND business_group_id = v_business_group_id;
    Potential Problems/Clarifications
    1. What is r.supervisor_number, what does it contain and how is it derived? I can't see that anywhere else in the block...
    2. Is there a chance that r.supervisor_number is referencing an employee who has left, ie, now an ex-employee?
    3. The SELECT statement that fetches the assignment_id does not perform any date-effective restrictions, which means you might be lucky enough to fetch the person's current assignment. But you might also fetch an old or future-dated assignment.
    4. The SELECT statement that fetches the assignment_id does not restrict the type of assignment, so if this manager has applied for a job (ie, they have an applicant assignment) or some other type of non-employee assignment you might be picking that up.
    This would work better for you:
    SELECT paaf.assignment_id
    INTO v_sup_assignment_id
    FROM per_all_people_f papf
    ,per_all_assignments_f paaf
    WHERE papf.employee_number = r.supervisor_number
    AND papf.business_group_id = v_business_group_id
    AND nvl(papf.current_employee_flag, 'N') = 'Y'
    AND trunc(sysdate) BETWEEN
    papf.effective_start_date AND papf.effective_end_date
    AND papf.person_id = paaf.person_id
    AND paaf.assignment_type = 'E'
    AND paaf.primary_flag = 'Y'
    AND trunc(sysdate) BETWEEN
    paaf.effective_start_date AND paaf.effective_end_date;
    If it doesn't return a row it means that the supervisor (or whatever employee is returned by r.supervisor_number) is not active as at sysdate and cannot be used. Note that this SQL only applies for employees. If you can have Contingent Workers as supervisors in your implementation then this needs tweaking.
    Does that help?

  • How to create new docs with custom swatch palette?

    Looking to create new documents with a corporate color palette already available instead of having to load the .ase files. Fat chance?

    Thanks Bob - I was trying that on a test MAC and it just was not sticking. A shutdown instead or a restart seemed to put things back in order and now all is good.

  • How to create new user with more than one default folder

    hi
    A new user created in OCS has only one default folder(Inbox).
    I want to create new user with customized default folder.
    for example:
    a new user has more than one default folder(Inbox,Outbox,Draft,Dustbin...)
    And also I want to automaticly enable the functions:
    When sending messages, place a copy in Outbox
    Keep message drafts in Draft
    Move deleted messages to Dustbin
    who know that?
    thanks

    The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
    Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated

  • Create New user with ...

    Hi all
    I need to create new user with the following privileges :
    1- access any table data (read only)
    2- access the tables structure (read only)
    3- access the tables relations (read only)
    thanx in advance

    Hi,
    giggs11 wrote:
    I did the following :
    create user youruser identified by yourpassword;
    grant connect to youruser;
    grant SELECT_CATALOG_ROLE to username;
    but I cann't see my tables
    there is no erroExample :-
    Step 1:-
    sql> Conn system/manager@orcl;
    connected.
    step 2:-
    SQL> create user trial identified by trial;
    User created.
    Step 3:-
    SQL> grant connect to trial;
    Grant succeeded.
    SQL>grant SELECT_CATALOG_ROLE to trial;
    Grant succeeded.
    SQL> grant select any table to trial;
    Grant succeeded.
    Step 4:
    SQL> conn trial/trial@orcl;
    Connected.
    SQL> select * from tab;
    no rows selected
    Step 5:
    SQL> select * from scott.dept;
    DEPTNO DNAME LOC
    10 ACCOUNTING NEW YORK
    20 RESEARCH DALLAS
    30 SALES CHICAGO
    40 OPERATIONS BOSTON
    Step 6:
    SQL> desc scott.dept;
    Name Null? Type
    DEPTNO NOT NULL NUMBER(2)
    DNAME VARCHAR2(14)
    LOC VARCHAR2(13)
    you must read about privileges..
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/privs.htm
    Regards
    S.Azar
    DBA
    "Question is Unquestionable"
    Edited by: azarmohds on Aug 15, 2009 6:28 AM
    Edited by: azarmohds on Aug 15, 2009 6:32 AM

  • Bug report about create new footprint with Rounded rectangle in 3D info Bottom

    I create new footprint with rounded rectangle in 3D info Bottom,the rounded rectangle must be in bottom,but In fact,the rounded rectangle
    created in top layer.i think it's wrong.
    I used ultiboard 10.1.357.

    Hi,
    Thank you for reporting this. This has been a long standing issue with Ultiboard and we are looking into resolving this.
    There is a work around although a very inconvenient one. You can set the height to what you require and use a negative offset to move the shape to the other side of the board. The 3D shape will appear on the other side, but in reality is just shifted, not mirrored.
    Hope that helps. We apologize for the inconvenience.
    Yi
    Software Developer
    National Instruments - Electronics Workbench Group

  • Create new application with same ID as a previous application

    10gR2, webtogo client. We are in a situation where due to what looks like some corruption issue/inability to publish correctly, we may need to drop our existing application and re-create. So the application will have a new applications.id. applications.dsn and applications.publication value. This will most certainly force all our offline users to do a re-install which we want to avoid. (correct? - I'm assuming the offline databases like a1121.odb are keyed to the 1121 applications.id)
    Wondering if there is any way to re-create a new application but with the old application ID. One way we think we could do this is that after dropping the application, reset the mobileadmin APPIDS sequence so that it will pick up the ID of the old app when we create the new one. And so have the same applications.id. applications.dsn and applications.publication value.
    However, wondering if we do this, we'd cause some other issue. Anyone have any ideas? (we have ticket open for the publication problem, but not much progress yet on that end.)

    You may create new mode with the same transaction.
    I'm not sure, that you may just "copy-paste" the content from one mode into another.
    To create new mode with the same transaction, you may use the following code:
    data: l_current_tcode like sy-tcode.
    move sy-tcode to l_current_tcode.
        CALL FUNCTION 'TH_CREATE_MODE'
          EXPORTING
            transaktion    = l_current_tcode
            del_on_eot     = 1
    *        PARAMETERS     = l_pars
            process_dark   = 'X'
          IMPORTING
    *        mode           = 
          EXCEPTIONS
            max_sessions   = 1
            internal_error = 2
            no_authority   = 3
            OTHERS         = 4.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    What transaction do you need to display?
    Message was edited by: Cyrill Smirnov

  • Creating new database with old database datafile

    is it possible to create new database with old datafile
    i lost my database ,i have no back up, just i have datafiles,
    i want to create new database and want to create tablespaces with old datafiles
    pls suggest me right one
    tahnk you

    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 339559282 generated at 03/09/2008 12:23:01 needed for thread 1
    ORA-00289: suggestion : F:\ORA9IAS\RDBMS\ARC01901.001
    ORA-00280: change 339559282 for thread 1 is in sequence #1901
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log 'F:\ORA9IAS\RDBMS\ARC01901.001'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: 'F:\ORA9IAS\ORADATA\IASDB\SYSTEM01.DBF'

  • Create new tags?

    Hi everyone,
    I upgraded to Mavericks and am enjoying getting used to the new Tags system, but I can't figure out how to create new Tags, am I missing something really obvious??
    Thanks!

    The easiest way is to select the file/folder you wish to tag > click the 'edit tags' icon in finder bar > Type in the Name for a new Tag:

  • I want to create new tags.

    I often access science sites. Today I tried to bookmark such a site and wanted to tag it with a tag called "Science" and was unable to find that tag so now I want to create a tag called Science. How do I do that? Firefox is supposed to be personalizable and it's why I run it. Is a folder the same as a tag? I saw info on how to create new folders but not tags. Please help.

    See [[Bookmark Tags]]

  • Set up new iPhone 5 with iCloud restore, then iTunes created new library with only content already on phone. How do I find and sync everything in original library?

    My daughter got a new iPhone 5 and we set it up using the option to restore her iPhone 4 backup from iCloud. This worked great and everything on the old phone showed up on the new phone. Because we were traveling, we weren't able to sync the iPhone 5 with iTunes at that time.
    She purchased new apps and music on the iPhone 5. When we returned home she synced with iTunes, and it seems to have created a new library, with only the content currently on the phone. I don't know if it prompted her to do this on the first sync or not - she doesn't remember.
    So in iTunes, the library now only shows the music on the phone. A sync isn't doing much now because when choosing the phone in iTunes and selecting each content type across the top (Apps, Music, Movies, TV Shows) the box is unchecked to sync that content. When I check the box to "Sync Music", iTunes gives a warning:
    Are you sure you want to sync music? all existing songs and playlists on the iPhone Becca's iPhone will be replaced with songs and playlists from your iTunes library.
    Same goes for apps, except that warning also mentions that the apps and their data will be erased and replaced.
    At some point she was also getting a message that this iPhone was associated with another library, but I'm not sure how she had triggered that. She says she canceled out of that. I can see all of the music
    How do we get iTunes to see the "old" library of songs, videos and apps without losing the ones she's purchased already on the iPhone? The music files themselves are still on the computer, and include music both purchased from iTunes as well as music ripped from CDs. Thanks for any advice!

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • HR_MAINTAIN_MASTERDATA create new employee with specific PERNR

    I have a list of new employee to import into SAP in automation
    And this employee have a I have a list of new employee to import into SAP in automation
    And this employees have a their id
    How can i create new employees into SAP with a their id ?
    thanks

    Is your system set up to assign a new employee number when the hire process is initiated?  Why are you giving people an employee number before they are hired into the HR system?
    If you use PA40 I think (not sure) you can assign an employee number on the screen.
    SL

Maybe you are looking for

  • Why Table or View does not exist???

    Hi to all. I have an issue with my Business Objects. I have a relationship between two entities with the following cardinality: EntityA 1......* Entity B, the relation is a composition and the IDs for them are DB Sequence. I have created the correspo

  • Region in the Plant - Any impact?

    Hello Friends, I'm almost certain about this, but I would like to confirm this so that i don't mess up with the system The "Region" in the plant address was wrongly maintained few years ago as 11 instead of 01. If we change this to 01, will there be

  • Oracle self study - satisfy requirement  for PerformanceTuning Cert Exp?

    If I was to buy the "Oracle Database 11g: Performance Tuning" self study CD does that satisfy the training requirement for cert "Oracle Database 11g Performance Tuning Certified Expert"? Or do I have to take an instructor led course? It appears that

  • Midnight Commander confirmation dialogs default to "yes"

    I finally found a file manager that I like. Yay. However, Midnight Commander's confirmation dialogs (e.g. when deleting a file) always pop up with "yes" preselected, which means that your data is toast (or whatever) if you accidentally hit Enter. Gua

  • How do I find my other account?

    I used an account name for years before Microsoft got involved, and I hadn't used it in a while when the upgrade came. I couldn't sign in with the old username info, and had to build a new account. But the old account, which on my phone is still set